From bc2bc19f4911225f6724d5372fb2c1d42e962e5a Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Wed, 17 Mar 2021 17:48:51 +0300 Subject: [PATCH] New package: zlib-ng-2.0.2 --- srcpkgs/zlib-ng-devel | 1 + srcpkgs/zlib-ng/INSTALL.msg | 3 +++ srcpkgs/zlib-ng/REMOVE.msg | 3 +++ srcpkgs/zlib-ng/template | 30 ++++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 120000 srcpkgs/zlib-ng-devel create mode 100644 srcpkgs/zlib-ng/INSTALL.msg create mode 100644 srcpkgs/zlib-ng/REMOVE.msg create mode 100644 srcpkgs/zlib-ng/template diff --git a/srcpkgs/zlib-ng-devel b/srcpkgs/zlib-ng-devel new file mode 120000 index 000000000000..65f4ecb07e5b --- /dev/null +++ b/srcpkgs/zlib-ng-devel @@ -0,0 +1 @@ +zlib-ng \ No newline at end of file diff --git a/srcpkgs/zlib-ng/INSTALL.msg b/srcpkgs/zlib-ng/INSTALL.msg new file mode 100644 index 000000000000..2b50efdb4f7b --- /dev/null +++ b/srcpkgs/zlib-ng/INSTALL.msg @@ -0,0 +1,3 @@ +In order to use `zlib-ng` instead of `zlib`, add this line to /etc/ld.so.preload: +/usr/lib/zlib-ng/libz.so.1 + diff --git a/srcpkgs/zlib-ng/REMOVE.msg b/srcpkgs/zlib-ng/REMOVE.msg new file mode 100644 index 000000000000..ea2cad37daf8 --- /dev/null +++ b/srcpkgs/zlib-ng/REMOVE.msg @@ -0,0 +1,3 @@ +Since `zlib-ng` package is uninstalled now, you can remove this line from /etc/ld.so.preload: +/usr/lib/zlib-ng/libz.so.1 + diff --git a/srcpkgs/zlib-ng/template b/srcpkgs/zlib-ng/template new file mode 100644 index 000000000000..20b15edf102b --- /dev/null +++ b/srcpkgs/zlib-ng/template @@ -0,0 +1,30 @@ +# Template file for 'zlib-ng' +pkgname=zlib-ng +version=2.0.2 +revision=1 +build_style=cmake +configure_args="-DZLIB_COMPAT=ON" +short_desc="Zlib replacement with optimizations for 'next generation' systems" +maintainer="Artur Sinila " +license="Zlib" +homepage="https://github.com/zlib-ng/zlib-ng" +distfiles="https://github.com/zlib-ng/zlib-ng/archive/${version}.tar.gz" +checksum=dd37886f22ca6890e403ea6c1d60f36eab1d08d2f232a35f5b02126621149d28 + +post_install() { + mkdir "${DESTDIR}/usr/lib/zlib-ng" "${DESTDIR}/usr/include/zlib-ng" + mv "${DESTDIR}/usr/lib/pkgconfig/zlib.pc" "${DESTDIR}/usr/lib/pkgconfig/zlib-ng.pc" + mv ${DESTDIR}/usr/lib/libz.* ${DESTDIR}/usr/lib/zlib-ng/ + mv ${DESTDIR}/usr/include/*.h ${DESTDIR}/usr/include/zlib-ng/ +} + +zlib-ng-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/zlib-ng/*.a" + vmove "usr/lib/zlib-ng/*.so" + } +}