summaryrefslogtreecommitdiff
path: root/development/p4d/p4d.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/p4d/p4d.SlackBuild')
-rw-r--r--development/p4d/p4d.SlackBuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/development/p4d/p4d.SlackBuild b/development/p4d/p4d.SlackBuild
new file mode 100644
index 0000000000..c664b5049d
--- /dev/null
+++ b/development/p4d/p4d.SlackBuild
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# Slackware build script for p4d
+# Based on Slackbuild script for p4 by Andy Bailey <GooseYArd@gmail.com>
+# Written by David Sullins <david.sullins@gmail.com>
+
+PRGNAM=p4d
+VERSION=${VERSION:-2016.1.1447837}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+mkdir -p $TMP $PKG $OUTPUT
+mkdir -p $PKG/usr/bin
+cp $CWD/$PRGNAM $PKG/usr/bin
+
+chown root:root $PKG/usr/bin/$PRGNAM
+chmod 0755 $PKG/usr/bin/$PRGNAM
+
+mkdir -p $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}