Created
March 20, 2015 17:46
-
-
Save AbigailBuccaneer/af347e4530c85dbe53c2 to your computer and use it in GitHub Desktop.
Create a Debian package for p4v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e # terminate on any error | |
[ -f p4v.tgz ] || wget http://www.perforce.com/downloads/perforce/r14.3/bin.linux26x86_64/p4v.tgz | |
mkdir -p opt && tar xf p4v.tgz -C opt | |
mkdir -p usr/bin | |
for f in p4admin p4merge p4v p4vc; do | |
[ -x "usr/bin/$f" ] || ln -s "../../opt/p4v-2014.3.1007540/bin/$f" "usr/bin/$f" | |
done | |
fpm -s dir -t deb -n 'p4v' -v '2014.3.1007540' -a amd64 -m "$USER_EMAIL" usr opt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment