summaryrefslogtreecommitdiff
path: root/system/makepp/makepp.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-04-01 01:06:08 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-01 01:06:08 +0700
commit3f185623a47cd1cad5c6fefd9bb96f0c22fbdc9f (patch)
treeec1671eda0be4b054520a813926472f5a1481efc /system/makepp/makepp.SlackBuild
parent20501e7156be4c68d3a1137acc4b926a9f2f8b83 (diff)
downloadslackbuilds-3f185623a47cd1cad5c6fefd9bb96f0c22fbdc9f.tar.gz
system/makepp: Added (GNU Make replacement).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/makepp/makepp.SlackBuild')
-rw-r--r--system/makepp/makepp.SlackBuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/system/makepp/makepp.SlackBuild b/system/makepp/makepp.SlackBuild
new file mode 100644
index 0000000000..a9758a50cc
--- /dev/null
+++ b/system/makepp/makepp.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Slackware build script for makepp
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=makepp
+VERSION=${VERSION:-2.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Most of the executables have 2 names each, short and long, e.g. mpp
+# and makepp. install.pl installs them as hardlinks, which is kinda weird
+# for a Slack package. Not sure they'd cause any problems, but I *know*
+# symlinks work correctly, so:
+sed -i 's,^ *link\>,symlink,' install.pl
+
+# configure/make is just a wrapper around install.pl. Skip the tests,
+# because they spam /usr/include and don't even clean up after themselves.
+perl install.pl \
+ /usr/bin \
+ /usr/share/$PRGNAM \
+ /usr/man \
+ /usr/doc/$PRGNAM-$VERSION \
+ none \
+ $PKG/usr
+
+gzip -9 $PKG/usr/man/man1/*.1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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}