mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
academic/calc: Updated for version 2.12.4.0
This commit is contained in:
parent
3404c066a0
commit
6ee14cf207
2 changed files with 13 additions and 3 deletions
|
@ -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}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="calc"
|
|||
VERSION="2.12.4.0"
|
||||
HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/calc/calc-2.12.4.0.tar.bz2"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="2ef56695837c6e501ca80b64e0be0db6"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Grigorios Bouzakis"
|
||||
EMAIL="grbzks@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue