diff options
author | Aaditya Bagga <aaditya_gnulinux@zoho.com> | 2015-06-04 21:09:35 +0530 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-06-07 21:37:28 +0700 |
commit | 8e8d0ec629d7a531450713e13e17e327db4190eb (patch) | |
tree | 14ed319bcc6753662c67cc62ffb17bc872ea3af6 /system | |
parent | 4581dfcbb1c83fa203a228666db89e6235a6fe1e (diff) |
system/TLP: correct LIBDIRSUFFIX usage in Slackbuild.
Diffstat (limited to 'system')
-rw-r--r-- | system/TLP/TLP.SlackBuild | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild index ef4864cbdfeac..3b37e291b2fe7 100644 --- a/system/TLP/TLP.SlackBuild +++ b/system/TLP/TLP.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=TLP VERSION=${VERSION:-0.7} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -40,7 +40,19 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -ARCH="noarch" +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 @@ -62,13 +74,13 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Switch to rc.d -sed -i -e "s/init.d/rc.d/" Makefile +sed 's/init.d/rc.d/' -i Makefile # Fix for x86_64 -sed -i -e "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" Makefile +sed "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" -i Makefile # Correct sourcing of non-existant file -sed -i "s|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|" tlp.init +sed 's|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|' -i tlp.init make install-tlp DESTDIR=$PKG |