diff options
author | Andy Bailey <GooseYArd@gmail.com> | 2010-06-13 14:51:07 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-13 14:51:07 -0500 |
commit | feb4d19f4b32538bc0c27d6af7a7bdf9effe5a9e (patch) | |
tree | 6a6e4a8e42e4fcbb778636cdb9d7727c3e6f9d15 /development/p4/p4.SlackBuild | |
parent | 4b33e185932c6ed665cf0e5863cc46fe77068df6 (diff) | |
download | slackbuilds-feb4d19f4b32538bc0c27d6af7a7bdf9effe5a9e.tar.gz |
development/p4: Added (cli client for Perforce)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/p4/p4.SlackBuild')
-rw-r--r-- | development/p4/p4.SlackBuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/development/p4/p4.SlackBuild b/development/p4/p4.SlackBuild new file mode 100644 index 0000000000..7023dac8a2 --- /dev/null +++ b/development/p4/p4.SlackBuild @@ -0,0 +1,42 @@ +#!/bin/sh + +# Slackware build script for p4 +# Manpage from: http://www.perforce.com/perforce/doc.052/man/p4.1 +# Written by Andy Bailey <bailey@akamai.com + +PRGNAM=p4 +VERSION=${VERSION:-r0.92} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 $PKG/usr/man/man1 +cp $CWD/p4 $PKG/usr/bin +gzip -9 -c < $CWD/p4.man > $PKG/usr/man/man1/p4.1.gz + +chown root:root $PKG/usr/bin/p4 $PKG/usr/man/man1/p4.1.gz +chmod 0755 $PKG/usr/bin/p4 +chmod 0644 $PKG/usr/man/man1/p4.1.gz + +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} |