slackbuilds_ponce/development/p4/p4.SlackBuild
David Sullins ad6633d18f development/p4: Updated for version 2016.1.1454320.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-10-24 16:49:48 +07:00

38 lines
761 B
Bash

#!/bin/sh
# Slackware build script for p4
# Written by Andy Bailey <GooseYArd@gmail.com>
# Modified by David Sullins <david.sullins@gmail.com>
PRGNAM=p4
VERSION=${VERSION:-2016.1.1454320}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
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/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}