diff options
author | William Pitcock <nenolod@dereferenced.org> | 2015-06-03 08:13:11 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2015-06-03 08:13:36 -0500 |
commit | 0a8577e034586a7dec2b7469b665425af4ecbf9c (patch) | |
tree | 6bf3bc4dacfc07d7738c13040cba436d4b437e01 /main/pigz | |
parent | c17779372bf4578df5f0851e0c1f4289e81b8033 (diff) | |
download | aports-0a8577e034586a7dec2b7469b665425af4ecbf9c.tar.bz2 aports-0a8577e034586a7dec2b7469b665425af4ecbf9c.tar.xz |
main/pigz: new aport
Diffstat (limited to 'main/pigz')
-rw-r--r-- | main/pigz/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/pigz/APKBUILD b/main/pigz/APKBUILD new file mode 100644 index 0000000000..13843515a2 --- /dev/null +++ b/main/pigz/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=pigz +pkgver=2.3.3 +pkgrel=0 +pkgdesc="parallel implementation of gzip" +url="http://zlib.net/pigz/" +arch="all" +license="zlib" +depends="" +depends_dev="" +makedepends="zlib-dev" +install="" +subpackages="$pkgname-doc" +source="http://zlib.net/pigz/pigz-$pkgver.tar.gz" + +_builddir="$srcdir"/pigz-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/usr/bin + mkdir -p "$pkgdir"/usr/share/man/man1 + for i in pigz unpigz; do + install -m755 $i "$pkgdir"/usr/bin + done + install -m755 pigz.1 "$pkgdir"/usr/share/man/man1 +} + +md5sums="01d7a16cce77929cc1a78aa1bdfb68cb pigz-2.3.3.tar.gz" +sha256sums="4e8b67b432ce7907575a549f3e1cac4709781ba0f6b48afea9f59369846b509c pigz-2.3.3.tar.gz" +sha512sums="6fa5ee1c03b4a8dc4b191acaa337b6f30132503ff413300214e1e6b27dd70590b53334be3fa880916f6ea4498beb8cf7c411a5954fdf188475882c44618c663c pigz-2.3.3.tar.gz" |