summaryrefslogtreecommitdiffstats
path: root/development/pli/pli.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/pli/pli.SlackBuild')
-rw-r--r--development/pli/pli.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/development/pli/pli.SlackBuild b/development/pli/pli.SlackBuild
index 14168abdd2..52ec12b4dc 100644
--- a/development/pli/pli.SlackBuild
+++ b/development/pli/pli.SlackBuild
@@ -6,12 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20231121 bkw: update for v1.2.0.
+# 20230103 bkw: update for v0.9.10e, fix PKGTYPE mess.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pli
-VERSION=${VERSION:-0.9.10d}
+VERSION=${VERSION:-1.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# static binary and library are for this arch.
ARCH=i586
@@ -47,19 +51,15 @@ find . -type f -a -exec chmod 644 {} \+ -o -exec chmod 755 {} \+
# but they don't include the includes, or the ISAM stuff (libpbl),
# or the alt/ dir.
-# thought about stripping the plic binary, but I'm not sure it's wise.
-# plus, it's 2.6MB, and stripping it only removes 18KB (or, it only
-# gets 0.07% smaller), so no point anyway.
-
PKGLIB=$PKG/usr/lib
PRIVLIB=$PKGLIB/$PRGNAM-$VERSION
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
PKGMAN=$PKG/usr/man/man1
mkdir -p $PKG/usr/bin $PRIVLIB $PKGDOC $PKGMAN
-install -oroot -groot -m0755 plic $PRIVLIB/plic
-install -oroot -groot -m0644 lib/libprf.a $PRIVLIB/libprf.a
-install -oroot -groot -m0644 lib/libpbl.a $PRIVLIB/libpbl.a
+install -s -oroot -groot -m0755 plic $PRIVLIB/plic
+install -oroot -groot -m0644 lib/libprf.a $PRIVLIB/libprf.a
+install -oroot -groot -m0644 lib/libpbl.a $PRIVLIB/libpbl.a
cp -a lib/{alt,include,source} $PRIVLIB
ln -s $PRGNAM-$VERSION $PKG/usr/lib/$PRGNAM
@@ -84,4 +84,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE