From 3b0d687ef17e449269bd24cedb07836c53bcef1d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 11 Oct 2020 17:50:26 -0400 Subject: libraries/flint: Fix slack-desc, template comments. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- libraries/flint/flint.SlackBuild | 11 +---------- libraries/flint/slack-desc | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'libraries/flint') 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} diff --git a/libraries/flint/slack-desc b/libraries/flint/slack-desc index d470e3b5d5..3e3df86d46 100644 --- a/libraries/flint/slack-desc +++ b/libraries/flint/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -flint: FLINT: Fast Library for Number Theory +flint: flint (Fast Library for Number Theory) flint: flint: FLINT (Fast Library for Number Theory) is a C library in support of flint: computations in number theory. It's also a research project into -- cgit v1.2.3-65-gdbad