Files
BMLFS/build-scripts/qt5-qtconnectivity.build
2022-04-21 17:02:54 -05:00

51 lines
1.8 KiB
Bash

#! /bin/bash
# Qt5-QtConnectivity
# Source: https://invent.kde.org/qt/qt/qtconnectivity/-/archive/69a87a9b831e36a578594a0a13130c384ad03121/qtconnectivity-69a87a9b831e36a578594a0a13130c384ad03121.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt5-qtbase qt5-qtdeclarative bluez
# Recommended: NONE
# Optional: NONE
# Per Alpine Linux
# We need to make the build system think we're running in a
# git repository.
# so it correctly symlinks during the build
mkdir .git
qmake-qt5 && \
read -p "Compile?" && make -j2 &&
sudo -S make INSTALL_ROOT=$BUILD install && \
sudo ln -sv qt5-5.15.3 $BUILD/opt/qt5 && \
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$BUILD/opt/qt5/lib" -type f -name '*.prl' \
-exec sudo sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
qt5-qtconnectivity: qt5-qtconnectivity
qt5-qtconnectivity:
qt5-qtconnectivity: QT5 Connectivity Compontents
qt5-qtconnectivity:
qt5-qtconnectivity: https://www.qt.io/developers/
qt5-qtconnectivity:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt5-qtconnectivity-5.15.3_git20201027-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*