Skip to content

Instantly share code, notes, and snippets.

@AbigailBuccaneer
Created March 20, 2015 17:46
Show Gist options
  • Save AbigailBuccaneer/af347e4530c85dbe53c2 to your computer and use it in GitHub Desktop.
Save AbigailBuccaneer/af347e4530c85dbe53c2 to your computer and use it in GitHub Desktop.
Create a Debian package for p4v
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