summaryrefslogtreecommitdiff
path: root/libraries/libtommath
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtommath')
-rw-r--r--libraries/libtommath/libtommath.SlackBuild14
-rw-r--r--libraries/libtommath/libtommath.info6
2 files changed, 15 insertions, 5 deletions
diff --git a/libraries/libtommath/libtommath.SlackBuild b/libraries/libtommath/libtommath.SlackBuild
index bc1f1c83dd..20385ad3bb 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
diff --git a/libraries/libtommath/libtommath.info b/libraries/libtommath/libtommath.info
index c9296f31c5..15bdd9189e 100644
--- a/libraries/libtommath/libtommath.info
+++ b/libraries/libtommath/libtommath.info
@@ -1,8 +1,8 @@
PRGNAM="libtommath"
-VERSION="1.0"
+VERSION="1.0.1"
HOMEPAGE="http://libtom.net/"
-DOWNLOAD="https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz"
-MD5SUM="a95dc984d8409a6f355efb0831009a66"
+DOWNLOAD="https://github.com/libtom/libtommath/releases/download/v1.0.1/ltm-1.0.1.tar.xz"
+MD5SUM="72f4dd9dcde8338e5e3507f7bbea7582"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""