diff options
Diffstat (limited to 'desktop/autorandr/autorandr.SlackBuild')
-rw-r--r-- | desktop/autorandr/autorandr.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/desktop/autorandr/autorandr.SlackBuild b/desktop/autorandr/autorandr.SlackBuild index a852ddeb74..b4f7a728f3 100644 --- a/desktop/autorandr/autorandr.SlackBuild +++ b/desktop/autorandr/autorandr.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=autorandr -VERSION=${VERSION:-1.11} +VERSION=${VERSION:-1.15} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,18 +50,16 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# Some of the TARGETS can generate binaries (for example, launcher generates autorandr-launcher) +# This is not always noarch if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -79,10 +77,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -[ -n "$TARGETS" ] && TARGETS="TARGETS=$TARGETS" - -make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" -make install $TARGETS PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG +if [[ -n "$TARGETS" ]]; then + make install CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" "TARGETS=$TARGETS" PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG +else + make install CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG +fi find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |