mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/flint: Fix slack-desc, template comments.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e5bff4b407
commit
3b0d687ef1
2 changed files with 2 additions and 11 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue