summaryrefslogtreecommitdiff
path: root/core/zlib/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'core/zlib/MAKEPKG')
-rw-r--r--core/zlib/MAKEPKG36
1 files changed, 36 insertions, 0 deletions
diff --git a/core/zlib/MAKEPKG b/core/zlib/MAKEPKG
new file mode 100644
index 0000000..017579b
--- /dev/null
+++ b/core/zlib/MAKEPKG
@@ -0,0 +1,36 @@
+#!/bin/mkpkg
+# description: Compression library
+# url: https://zlib.net
+
+name=zlib
+version=1.3.2
+release=1
+source=(https://github.com/madler/zlib/releases/download/v$version/$name-$version.tar.gz)
+depends=()
+makedeps=()
+
+sha256sums=(
+ "bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16"
+)
+
+build() {
+ cd $name-$version
+ CC=clang LDSHARED="clang -shared -Wl,-soname,libz.so.1" \
+ ./configure \
+ --prefix=/ \
+ --includedir=/include \
+ --libdir=/lib \
+ --shared
+ make
+ make install DESTDIR=$PKG \
+ mandir=/usr/share/man \
+ pkgconfigdir=/lib/pkgconfig
+ rm -f $PKG/lib/*.a
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh