diff options
Diffstat (limited to 'libraries/libtommath/libtommath.SlackBuild')
-rw-r--r-- | libraries/libtommath/libtommath.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libraries/libtommath/libtommath.SlackBuild b/libraries/libtommath/libtommath.SlackBuild index bc1f1c83dd10..20385ad3bba9 100644 --- a/libraries/libtommath/libtommath.SlackBuild +++ b/libraries/libtommath/libtommath.SlackBuild @@ -6,8 +6,12 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20170903 bkw: Updated for v1.0.1. Changes are incompatible with +# libtommath-1.0, use the previous version of this script if you need +# 1.0 for some odd reason. + PRGNAM=libtommath -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -48,8 +52,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# hardcoded lib paths suck +sed -i "s,/lib\$,&$LIBDIRSUFFIX," $PRGNAM.pc.in + make -f makefile.shared LIBPATH=/usr/lib$LIBDIRSUFFIX make -f makefile.shared install \ + PREFIX=/usr/ \ LIBPATH=/usr/lib$LIBDIRSUFFIX \ INSTALL_GROUP=root \ DESTDIR=$PKG @@ -57,10 +65,12 @@ make -f makefile.shared install \ chmod 0644 $PKG/usr/include/* rm $PKG/usr/lib$LIBDIRSUFFIX/*.a strip $PKG/usr/lib$LIBDIRSUFFIX/*.so.*.*.* +chmod 755 $PKG/usr/lib$LIBDIRSUFFIX/*.so.*.*.* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION # permissions are wrong if we use cp -a here: -install -m0644 -oroot -groot *.pdf *.txt $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 -oroot -groot doc/*.pdf *.txt *.md LICENSE* \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |