summaryrefslogtreecommitdiffstats
path: root/misc/pinfo/pinfo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/pinfo/pinfo.SlackBuild')
-rw-r--r--misc/pinfo/pinfo.SlackBuild34
1 files changed, 20 insertions, 14 deletions
diff --git a/misc/pinfo/pinfo.SlackBuild b/misc/pinfo/pinfo.SlackBuild
index 45e102f2d0..868bf1c597 100644
--- a/misc/pinfo/pinfo.SlackBuild
+++ b/misc/pinfo/pinfo.SlackBuild
@@ -5,6 +5,8 @@
# Copyright 2009 Arun Prasannan - http://arunprasannan.com
# All rights reserved.
#
+# Now maintained by B. Watson <yalhcru@gmail.com>.
+#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
@@ -22,8 +24,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20191221 bkw:
+# - take over maintenance.
+# - upgrade for v0.6.13... though if you really need to, you can still
+# build 0.6.9 or 0.6.10 by setting VERSION in the environment.
+# - pinfo development moved to github, change homepage.
+# - add info dir entry in doinst.sh.
+
PRGNAM=pinfo
-VERSION=${VERSION:-0.6.9}
+VERSION=${VERSION:-0.6.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,14 +69,13 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.[bg]z* # allow old .bz2 and new .gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+[ -e configure ] || sh autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -77,22 +85,20 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/info/$PRGNAM.info $PKG/usr/man/man1/$PRGNAM.1
+rm -f $PKG/usr/info/dir
# Let's not clobber the config file
mv $PKG/etc/pinforc $PKG/etc/pinforc.new
-find $PKG/usr/man -type f | xargs gzip -9
-
-rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog COPYING INSTALL NEWS README TECHSTUFF \
+cp -a AUTHORS Change[lL]og* COPYING NEWS README* TECHSTUFF \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild