DOCS="doc AUTHORS COPY* INSTALL NEWS README" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=4.1 PROGNAME="GNU MP Library" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ gmp: gmp-$VERSION\n\ gmp:\n\ gmp: GNU MP is a library for arbitrary precision arithmetic, operating on\n\ gmp: signed integers, rational numbers, and floating point numbers. It has\n\ gmp: a rich set of functions, and the functions have a regular interface.\n\ gmp:\n\ gmp:\n\ gmp:\n\ gmp:\n\ gmp:\n\ gmp:" # maintainer ARCH=i586 BUILD=1rob MAINTAINER="Robert Stan " SOURCE=http://www.swox.com/gmp/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/l/ # package name PKGNAME="gmp-${VERSION}-${ARCH}-${BUILD}" # compiler flags PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH" compile() { tar xvzf $CWD/gmp-$VERSION.tar.gz ; cd gmp-$VERSION CFLAGS=$PKGOPT ./configure --prefix=/usr --with-gnu-ld || exit 1 CFLAGS=$PKGOPT make -j2 || exit 1 } install() { make install mkdir -p /usr/doc/gmp-$VERSION cp -a $DOCS /usr/doc/gmp-$VERSION } attributes() { echo "No special attributes..." } special() { # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }