summaryrefslogtreecommitdiff
path: root/community/pbzip2/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/pbzip2/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/pbzip2/PKGBUILD')
-rw-r--r--community/pbzip2/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/pbzip2/PKGBUILD b/community/pbzip2/PKGBUILD
new file mode 100644
index 000000000..24dff6a50
--- /dev/null
+++ b/community/pbzip2/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 74829 2012-08-06 16:53:08Z foutrelis $
+# Contributor: Vasco Costa <vasco dot costa at geekslot dot com>
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+
+pkgname=pbzip2
+pkgver=1.1.8
+pkgrel=1
+pkgdesc="Parallel implementation of the bzip2 block-sorting file compressor"
+arch=('i686' 'x86_64')
+url="http://compression.ca/pbzip2/"
+license=('BSD')
+depends=('bzip2' 'gcc-libs')
+source=(https://launchpad.net/$pkgname/1.1/$pkgver/+download/$pkgname-$pkgver.tar.gz)
+sha256sums=('d2da7e65d2a2ba5426d6d9bcd15d86cc5f90038efabd5dbc1ef9bded21371f53')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make PREFIX="$pkgdir/usr" install
+
+ # Fix location of man pages
+ install -d "$pkgdir/usr/share"
+ mv "$pkgdir/usr/man" "$pkgdir/usr/share"
+
+ # Symlinks for useful shortcuts
+ ln -sf pbzip2 "$pkgdir/usr/bin/pbunzip2"
+ ln -sf pbzip2 "$pkgdir/usr/bin/pbzcat"
+
+ # License
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim:set ts=2 sw=2 et: