diff options
Diffstat (limited to 'academic/calc/calc.SlackBuild')
-rw-r--r-- | academic/calc/calc.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/academic/calc/calc.SlackBuild b/academic/calc/calc.SlackBuild index 66cfd63f80..53887dd3c8 100644 --- a/academic/calc/calc.SlackBuild +++ b/academic/calc/calc.SlackBuild @@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp} 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" fi set -e @@ -42,16 +45,21 @@ find . \ make \ EXTRA_CFLAGS="$SLKCFLAGS" \ SCRIPTDIR=/usr/libexec/calc \ + LIBDIR=/usr/lib${LIBDIRSUFFIX} \ MANDIR=/usr/man/man1 + make install \ EXTRA_CFLAGS="$SLKCFLAGS" \ SCRIPTDIR=/usr/libexec/calc \ + LIBDIR=/usr/lib${LIBDIRSUFFIX} \ MANDIR=/usr/man/man1 \ T=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man || exit 1 @@ -72,4 +80,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |