summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-12 18:59:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-12 18:59:44 +0000
commit86d5952f04a4537444825645641b9845b1862a09 (patch)
treebb23df097a3d011fd0732cf0b98ce72339f3efc8 /user
parent38094114cc6f9788ff9075a2b1eba06033891fb1 (diff)
downloadpackages-86d5952f04a4537444825645641b9845b1862a09.tar.gz
packages-86d5952f04a4537444825645641b9845b1862a09.tar.bz2
packages-86d5952f04a4537444825645641b9845b1862a09.tar.xz
packages-86d5952f04a4537444825645641b9845b1862a09.zip
user/pigz: new package
Diffstat (limited to 'user')
-rw-r--r--user/pigz/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/pigz/APKBUILD b/user/pigz/APKBUILD
new file mode 100644
index 000000000..107019248
--- /dev/null
+++ b/user/pigz/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=pigz
+pkgver=2.4
+pkgrel=0
+pkgdesc="Parallel implementation of gzip"
+url="http://zlib.net/pigz/"
+arch="all"
+license="zlib"
+makedepends="zlib-dev"
+subpackages="$pkgname-doc"
+source="http://zlib.net/pigz/pigz-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ export CXXFLAGS="$CXXFLAGS -std=gnu++98"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make tests
+}
+
+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 -m644 pigz.1 "$pkgdir"/usr/share/man/man1
+}
+
+sha512sums="79b2357176f93b9f3e2bc07fee393fc4d79b7bd0041808f8ddfd23eafccde72e60ca95e97595bb624a4f732fe3612bf46d57c44541c36ae62f9aa6336abe16ba pigz-2.4.tar.gz"