From 3f185623a47cd1cad5c6fefd9bb96f0c22fbdc9f Mon Sep 17 00:00:00 2001 From: B. Watson Date: Sat, 1 Apr 2017 01:06:08 +0700 Subject: system/makepp: Added (GNU Make replacement). Signed-off-by: Willy Sudiarto Raharjo --- system/makepp/makepp.SlackBuild | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 system/makepp/makepp.SlackBuild (limited to 'system/makepp/makepp.SlackBuild') 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} -- cgit v1.2.3