Github messages for voidlinux
 help / color / mirror / Atom feed
From: Logarithmus <Logarithmus@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: zlib-ng-2.0.2
Date: Fri, 26 Mar 2021 21:38:17 +0100	[thread overview]
Message-ID: <20210326203817.gBvOk99iQGYBnkU-Na0M1XanRPMr73j-a87ItV49gXA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29544@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages zlib-ng
https://github.com/void-linux/void-packages/pull/29544

New package: zlib-ng-2.0.2
- New package: zlib-ng-2.0.1

<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

Maybe I should use `virtualpkg` instead of `alternatives`?


A patch file from https://github.com/void-linux/void-packages/pull/29544.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-zlib-ng-29544.patch --]
[-- Type: text/x-diff, Size: 2631 bytes --]

From bc2bc19f4911225f6724d5372fb2c1d42e962e5a Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
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 <opensource@logarithmus.dev>"
+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"
+	}
+}

  parent reply	other threads:[~2021-03-26 20:38 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 17:28 [PR PATCH] New package: zlib-ng-2.0.1 Logarithmus
2021-03-17 17:45 ` [PR REVIEW] " ericonr
2021-03-17 17:45 ` ericonr
2021-03-17 17:45 ` ericonr
2021-03-17 17:45 ` ericonr
2021-03-17 18:12 ` Logarithmus
2021-03-17 18:26 ` Logarithmus
2021-03-17 18:27 ` Logarithmus
2021-03-17 18:30 ` [PR REVIEW] " Logarithmus
2021-03-17 18:31 ` [PR PATCH] [Updated] " Logarithmus
2021-03-17 18:32 ` [PR REVIEW] " Logarithmus
2021-03-17 18:32 ` Logarithmus
2021-03-17 18:39 ` ericonr
2021-03-17 18:40 ` ericonr
2021-03-17 18:41 ` ericonr
2021-03-17 19:29 ` [PR PATCH] [Updated] " Logarithmus
2021-03-26 20:38 ` Logarithmus [this message]
2021-03-26 20:39 ` New package: zlib-ng-2.0.2 Logarithmus
2021-03-26 21:08 ` ericonr
2021-03-26 21:21 ` Logarithmus
2021-03-26 21:21 ` Logarithmus
2021-03-26 21:22 ` Logarithmus
2021-03-26 21:24 ` Logarithmus
2021-03-26 21:27 ` jnbr
2021-03-26 21:29 ` jnbr
2021-03-26 21:35 ` ericonr
2021-03-26 21:36 ` ericonr
2021-03-27 13:22 ` Logarithmus
2021-03-27 16:21 ` ericonr
2021-03-29  6:38 ` Logarithmus
2021-03-29  6:39 ` Logarithmus
2021-03-29  7:59 ` Logarithmus
2021-03-29 13:53 ` sgn
2021-03-29 13:54 ` [PR REVIEW] " sgn
2021-03-29 13:56 ` sgn
2021-03-29 13:56 ` sgn
2021-03-30 14:13 ` sgn
2021-03-30 14:14 ` sgn
2021-03-31  2:08 ` sgn
2021-06-07 13:56 ` ericonr
2021-06-07 13:56 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210326203817.gBvOk99iQGYBnkU-Na0M1XanRPMr73j-a87ItV49gXA@z \
    --to=logarithmus@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).