diff options
author | Eric Hameleers <alien@slackware.com> | 2018-12-09 15:29:30 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-12-09 15:29:30 +0100 |
commit | 80fac0aceb0b778938a14224faeb2172d3d946bc (patch) | |
tree | 2b1ea07e2c8ef77440f577aee8123d2049713d31 /deps/telepathy/telepathy-haze | |
parent | 044a706cdff5a0a8f8dc02b9be084cd196dbcfca (diff) | |
download | ktown-80fac0aceb0b778938a14224faeb2172d3d946bc.tar.gz ktown-80fac0aceb0b778938a14224faeb2172d3d946bc.tar.xz |
Rebuild all deps/telepathy packages
Diffstat (limited to 'deps/telepathy/telepathy-haze')
-rwxr-xr-x | deps/telepathy/telepathy-haze/telepathy-haze.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/deps/telepathy/telepathy-haze/telepathy-haze.SlackBuild b/deps/telepathy/telepathy-haze/telepathy-haze.SlackBuild index d238aa9..711faf7 100755 --- a/deps/telepathy/telepathy-haze/telepathy-haze.SlackBuild +++ b/deps/telepathy/telepathy-haze/telepathy-haze.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2015, 2018 Eric Hameleers, Eindhoven, NL # Copyright 2015 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # @@ -24,27 +24,23 @@ PKGNAM=telepathy-haze VERSION=${VERSION:-"0.8.0"} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} -NUMJOBS=${NUMJOBS:--j7} +NUMJOBS=${NUMJOBS:-" -j$(nproc) "} # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i586 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" @@ -97,6 +93,9 @@ find . \ make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |