diff options
author | Eric Hameleers <alien@slackware.com> | 2018-04-19 22:14:56 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-04-19 22:14:56 +0200 |
commit | dcf63056cf8a70c7077cf8006df184835f2c116c (patch) | |
tree | d2412a18ab09fe6f5dd6e98b92844100de078d6b /deps/qt5/qt5.SlackBuild | |
parent | a28662bc0ddbd0230f2611fb47b53fc27d6d284c (diff) | |
download | ktown-dcf63056cf8a70c7077cf8006df184835f2c116c.tar.gz ktown-dcf63056cf8a70c7077cf8006df184835f2c116c.tar.xz |
deps: sync mlt and qt5 with the new SlackBuild template of Slackware
Diffstat (limited to '')
-rwxr-xr-x | deps/qt5/qt5.SlackBuild | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/qt5/qt5.SlackBuild b/deps/qt5/qt5.SlackBuild index 48f973f..102ce15 100755 --- a/deps/qt5/qt5.SlackBuild +++ b/deps/qt5/qt5.SlackBuild @@ -75,6 +75,14 @@ if [ -z "$ARCH" ]; then export ARCH fi +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PKGNAM-${PKGVER}-${ARCH}-${BUILD}.txz" + exit 0 +fi + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKLDFLAGS="" @@ -220,6 +228,16 @@ make install INSTALL_ROOT=$PKG || exit 1 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +# Remove rpaths: +for file in $(find . | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : 2> /dev/null) ; do + if [ ! "$(patchelf --print-rpath $file 2> /dev/null)" = "" ]; then + patchelf --remove-rpath $file + fi +done + +# Don't ship .la files: +rm -f usr/lib${LIBDIRSUFFIX}/*.la + # Fix internal linking for Qt5WebEngineCore.pc , # thanks to Larry Hajali's SBo script: sed -i \ |