summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGuillaume Horel2017-07-31 11:21:11 -0400
committerGuillaume Horel2017-07-31 11:21:11 -0400
commit9d604f3bd4173aada4e2469722312f8bf355347f (patch)
tree4f68967751dc342d9be01fe39214774b69c3347a /PKGBUILD
downloadaur-9d604f3bd4173aada4e2469722312f8bf355347f.tar.gz
initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..41324b8db04
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=zlib-static
+epoch=1
+pkgver=1.2.11
+pkgrel=2
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.zlib.net/"
+depends=('glibc')
+options=('staticlibs') # needed by binutils testsuite
+provides=('zlib')
+conflicts=('zlib')
+source=("http://zlib.net/zlib-${pkgver}.tar.gz")
+md5sums=('1c9f62f0778697a09d36121ead88e08e')
+
+prepare() {
+ cd ${srcdir}/zlib-$pkgver
+ grep -A 24 '^ Copyright' zlib.h > LICENSE
+}
+
+build() {
+ cd ${srcdir}/zlib-$pkgver
+ CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd ${srcdir}/zlib-$pkgver
+ make test
+
+ cd contrib/minizip
+ make -f Makefile.orig test
+}
+
+package() {
+ pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
+
+ cd ${srcdir}/zlib-$pkgver
+ make install DESTDIR=${pkgdir}
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
+}