diff options
Diffstat (limited to 'libraries/flint/flint.SlackBuild')
-rw-r--r-- | libraries/flint/flint.SlackBuild | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libraries/flint/flint.SlackBuild b/libraries/flint/flint.SlackBuild index 2de9eaa2a1..4bbb6abbc9 100644 --- a/libraries/flint/flint.SlackBuild +++ b/libraries/flint/flint.SlackBuild @@ -27,12 +27,10 @@ VERSION=${VERSION:-2.6.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -56,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e # Exit on most errors +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -78,29 +76,22 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux -# Compile the application and install it into the $PKG directory make make install DESTDIR=$PKG # FLINT doesn't have an option to set the library path, so we adjust it here test -z "$LIBDIRSUFFIX" || mv -v "$PKG/usr/lib" "$PKG/usr/lib${LIBDIRSUFFIX}" -# Strip binaries and libraries - this can be done with 'make install-strip' -# in many source trees, and that's usually acceptable if so, but if not, -# use this: 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 -# Copy program documentation into the package mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -av doc/. $PKG/usr/doc/$PRGNAM-$VERSION/ cp -av examples $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Copy the slack-desc into ./install mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -# Make the package; be sure to leave it in $OUTPUT cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |