diff options
author | haawda | 2018-03-26 22:01:40 +0200 |
---|---|---|
committer | haawda | 2018-03-26 22:01:40 +0200 |
commit | ebe7ae6703e66a1578274a5d5b3435771a2b4b88 (patch) | |
tree | ba0d2ff731630670600462dd7e99c2aff2e3b8f8 | |
download | aur-ebe7ae6703e66a1578274a5d5b3435771a2b4b88.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6f305f9f6b0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = zlib-zpipe + pkgdesc = example of proper use of zlib's inflate() and deflate(), also a nice filtering compression solution + pkgver = 1.2.11 + pkgrel = 1 + url = https://www.zlib.net/ + arch = x86_64 + license = custom + depends = glibc + source = https://zlib.net/zlib-1.2.11.tar.gz + source = https://zlib.net/zlib-1.2.11.tar.gz.asc + validpgpkeys = 5ED46A6721D365587791E2AA783FCD8E58BCAFBA + md5sums = 1c9f62f0778697a09d36121ead88e08e + md5sums = SKIP + +pkgname = zlib-zpipe + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bfe450ca8f91 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> +pkgname=zlib-zpipe +pkgver=1.2.11 +pkgrel=1 +pkgdesc="example of proper use of zlib's inflate() and deflate(), also a nice filtering compression solution" +arch=('x86_64') +license=('custom') +url="https://www.zlib.net/" +depends=('glibc') +source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc}) +md5sums=('1c9f62f0778697a09d36121ead88e08e' + 'SKIP') +validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA') + +prepare() { + cd zlib-$pkgver + grep -A 24 '^ Copyright' zlib.h > LICENSE +} + +build() { + cd zlib-$pkgver/examples + gcc -o zlib-zpipe -lz zpipe.c +} + +package() { + cd zlib-$pkgver + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE + install -Dm755 examples/$pkgname "$pkgdir"/usr/bin/$pkgname +} |