Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: libircclient-1.10
@ 2019-05-04 21:41 voidlinux-github
  2019-05-04 22:07 ` voidlinux-github
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 21:41 UTC (permalink / raw)
  To: ml

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

There is a new pull request by maciozo against master on the void-packages repository

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 3945 bytes --]

From a84561fc27a2f716c81d6c860cdc80e062914087 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
@ 2019-05-04 22:07 ` voidlinux-github
  2019-05-04 23:28 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 22:07 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-489369327
Comment:
There's a problem when cross-compiling to `ppc64le` - ldd isn't able to recognise the format of the .so file.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
  2019-05-04 22:07 ` voidlinux-github
  2019-05-04 23:28 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-05-04 23:28 ` voidlinux-github
  2019-05-04 23:35 ` voidlinux-github
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 7899 bytes --]

From a84561fc27a2f716c81d6c860cdc80e062914087 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH 1/2] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

From 0afb1199f41f461e1f8f0aa57f7eeabf14ee10c9 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH 2/2] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
  2019-05-04 22:07 ` voidlinux-github
@ 2019-05-04 23:28 ` voidlinux-github
  2019-05-04 23:28 ` voidlinux-github
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 7899 bytes --]

From a84561fc27a2f716c81d6c860cdc80e062914087 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH 1/2] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

From 0afb1199f41f461e1f8f0aa57f7eeabf14ee10c9 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH 2/2] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (3 preceding siblings ...)
  2019-05-04 23:35 ` voidlinux-github
@ 2019-05-04 23:35 ` voidlinux-github
  2019-05-04 23:37 ` voidlinux-github
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:35 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 3945 bytes --]

From 0afb1199f41f461e1f8f0aa57f7eeabf14ee10c9 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (2 preceding siblings ...)
  2019-05-04 23:28 ` voidlinux-github
@ 2019-05-04 23:35 ` voidlinux-github
  2019-05-04 23:35 ` voidlinux-github
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:35 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 3945 bytes --]

From 0afb1199f41f461e1f8f0aa57f7eeabf14ee10c9 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (4 preceding siblings ...)
  2019-05-04 23:35 ` voidlinux-github
@ 2019-05-04 23:37 ` voidlinux-github
  2019-05-04 23:37 ` voidlinux-github
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4315 bytes --]

From 964b27b0ff07a52d76f01defdafa32a82a379648 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 5 files changed, 82 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (5 preceding siblings ...)
  2019-05-04 23:37 ` voidlinux-github
@ 2019-05-04 23:37 ` voidlinux-github
  2019-05-05  0:03 ` voidlinux-github
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-04 23:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4315 bytes --]

From 964b27b0ff07a52d76f01defdafa32a82a379648 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 19 +++++++
 srcpkgs/libircclient/template                 | 54 +++++++++++++++++++
 5 files changed, 82 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..d4ebe4d9e2e
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,54 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*)		depends+=" glibc-devel";;
+esac
+
+do_install() {
+	mkdir -p ${PKGDESTDIR}/usr/lib
+	mkdir -p ${PKGDESTDIR}/usr/include
+	mkdir -p ${PKGDESTDIR}/doc/sources
+	cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include/
+	cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc/
+	cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources/
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+
+		mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		cp ${FILESDIR}/libircclient.pc ${PKGDESTDIR}/usr/lib/pkgconfig/
+
+
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (6 preceding siblings ...)
  2019-05-04 23:37 ` voidlinux-github
@ 2019-05-05  0:03 ` voidlinux-github
  2019-05-05  0:43 ` voidlinux-github
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-05  0:03 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-489374820
Comment:
Added `libircclient.so.1` to `common/shlibs`

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (7 preceding siblings ...)
  2019-05-05  0:03 ` voidlinux-github
@ 2019-05-05  0:43 ` voidlinux-github
  2019-05-07 17:39 ` voidlinux-github
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-05  0:43 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-489376641
Comment:
I've put in a feature request for a pkg-config file from the developer, but I don't expect results

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (8 preceding siblings ...)
  2019-05-05  0:43 ` voidlinux-github
@ 2019-05-07 17:39 ` voidlinux-github
  2019-05-09 16:05 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-07 17:39 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490178088
Comment:
For `srcpkgs/libircclient/patches/build_shared_and_static.patch` you should use unified diff format, i.e. `diff -u`, because all our own patches use that.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (9 preceding siblings ...)
  2019-05-07 17:39 ` voidlinux-github
@ 2019-05-09 16:05 ` voidlinux-github
  2019-05-09 16:05 ` voidlinux-github
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:05 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4839 bytes --]

From f02f6f0dc7fc0f3a42fdc89f09914073a92106a6 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 ++
 .../patches/build_shared_and_static.patch     | 19 +++++
 srcpkgs/libircclient/template                 | 73 +++++++++++++++++++
 5 files changed, 101 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..ce95f33a66b
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,73 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	#mkdir -p ${PKGDESTDIR}/usr/lib
+	#mkdir -p ${PKGDESTDIR}/usr/include
+	#mkdir -p ${PKGDESTDIR}/doc/sources
+	
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	#cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	#cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	#cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include
+	#cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc
+	#cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		#mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		#mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		#mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (10 preceding siblings ...)
  2019-05-09 16:05 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-05-09 16:05 ` voidlinux-github
  2019-05-09 16:06 ` voidlinux-github
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:05 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4839 bytes --]

From f02f6f0dc7fc0f3a42fdc89f09914073a92106a6 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 ++
 .../patches/build_shared_and_static.patch     | 19 +++++
 srcpkgs/libircclient/template                 | 73 +++++++++++++++++++
 5 files changed, 101 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..ae4cc764585
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,19 @@
+*** src/Makefile.in.old	2019-05-04 19:22:44.323241339 +0100
+--- src/Makefile.in	2019-05-04 19:26:35.051551494 +0100
+***************
+*** 9,15 ****
+  
+  OBJS = libircclient.o
+  
+! all:	@TARGET@
+  
+  static:	libircclient.a
+  shared: libircclient.so
+--- 9,15 ----
+  
+  OBJS = libircclient.o
+  
+! all: libircclient.so libircclient.a
+  
+  static:	libircclient.a
+  shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..ce95f33a66b
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,73 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	#mkdir -p ${PKGDESTDIR}/usr/lib
+	#mkdir -p ${PKGDESTDIR}/usr/include
+	#mkdir -p ${PKGDESTDIR}/doc/sources
+	
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	#cp ${wrksrc}/src/*.so ${PKGDESTDIR}/usr/lib/
+	#cp ${wrksrc}/src/*.a ${PKGDESTDIR}/usr/lib/
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+
+	#cp ${wrksrc}/include/* ${PKGDESTDIR}/usr/include
+	#cp ${wrksrc}/doc/*.rst ${PKGDESTDIR}/doc
+	#cp ${wrksrc}/doc/sources/*.rst ${PKGDESTDIR}/doc/sources
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		#mkdir -p ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		#mv ${DESTDIR}/doc/* ${PKGDESTDIR}/usr/share/doc/${pkgname}
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		#mkdir -p ${PKGDESTDIR}/usr/lib/pkgconfig
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (11 preceding siblings ...)
  2019-05-09 16:05 ` voidlinux-github
@ 2019-05-09 16:06 ` voidlinux-github
  2019-05-09 16:10 ` voidlinux-github
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:06 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490966411
Comment:
I tend to think if you just remove `do_install()` and let xbps-src do its job in the default `gnu-configure` it should work. All the things you did seem way too complicated.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (12 preceding siblings ...)
  2019-05-09 16:06 ` voidlinux-github
@ 2019-05-09 16:10 ` voidlinux-github
  2019-05-09 16:29 ` voidlinux-github
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:10 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490966411
Comment:
I tend to think if you just remove `do_install()` and let xbps-src do its job in the default `gnu-configure` build style it should work. All the things you did seem way too complicated.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (13 preceding siblings ...)
  2019-05-09 16:10 ` voidlinux-github
@ 2019-05-09 16:29 ` voidlinux-github
  2019-05-09 16:48 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:29 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490974924
Comment:
@pullmoll 
> I tend to think if you just remove `do_install()` and let xbps-src do its job in the default `gnu-configure` build style it should work. All the things you did seem way too complicated.

Removing `do_install()` fails with:
```
=> libircclient-devel-1.10_1: running pkg_install ...
mv: cannot stat '/destdir//libircclient-1.10/usr/share/doc/libircclient/*': No such file or directory
=> ERROR: libircclient-devel-1.10_1: pkg_install: 'mv ${_destdir}/$files ${_pkgdestdir}/${_targetdir}' exited with 1
=> ERROR:   in _vmove() at common/environment/setup/install.sh:232
=> ERROR:   in _noglob_helper() at common/environment/setup/install.sh:12
=> ERROR:   in pkg_install() at srcpkgs/libircclient-devel/template:28
```
With `template:28` being `vmove usr/share/doc/${sourcepkg}/*` in `libircclient-devel_package().pkg_install()`

Also removing `pkg_install()` fails with:
```
=> libircclient-devel-1.10_1: running pre-pkg hook: 99-pkglint ...
=> ERROR: libircclient-devel-1.10_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: libircclient-devel-1.10_1: cannot continue with installation!
```

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (15 preceding siblings ...)
  2019-05-09 16:48 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-05-09 16:48 ` voidlinux-github
  2019-05-09 17:17 ` voidlinux-github
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:48 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4207 bytes --]

From 7653c29f913fcfc1528137f37f83d77b44f724b0 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 11 ++++
 srcpkgs/libircclient/template                 | 62 +++++++++++++++++++
 5 files changed, 82 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..b1bd31e87f1
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.old    2019-05-09 17:41:04.886554931 +0100
++++ src/Makefile.in        2019-05-09 17:40:36.072963121 +0100
+@@ -9,7 +9,7 @@
+
+ OBJS = libircclient.o
+
+-all:   @TARGET@
++all: libircclient.so libircclient.a
+
+ static:        libircclient.a
+ shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..be5f6e6845a
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,62 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+	
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (14 preceding siblings ...)
  2019-05-09 16:29 ` voidlinux-github
@ 2019-05-09 16:48 ` voidlinux-github
  2019-05-09 16:48 ` voidlinux-github
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 16:48 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 4207 bytes --]

From 7653c29f913fcfc1528137f37f83d77b44f724b0 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 |  1 +
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 11 ++++
 srcpkgs/libircclient/template                 | 62 +++++++++++++++++++
 5 files changed, 82 insertions(+)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..24d4b412653 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3450,3 +3450,4 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..b1bd31e87f1
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.old    2019-05-09 17:41:04.886554931 +0100
++++ src/Makefile.in        2019-05-09 17:40:36.072963121 +0100
+@@ -9,7 +9,7 @@
+
+ OBJS = libircclient.o
+
+-all:   @TARGET@
++all: libircclient.so libircclient.a
+
+ static:        libircclient.a
+ shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..be5f6e6845a
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,62 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+	
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (16 preceding siblings ...)
  2019-05-09 16:48 ` voidlinux-github
@ 2019-05-09 17:17 ` voidlinux-github
  2019-05-09 17:17 ` voidlinux-github
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 17:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 5705 bytes --]

From d8e171b8c94c7e15964fa4de375b820a1bf1f4a1 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 | 18 +++++-
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 11 ++++
 srcpkgs/libircclient/template                 | 62 +++++++++++++++++++
 5 files changed, 96 insertions(+), 3 deletions(-)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..083326a331b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,7 +72,7 @@ libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncurses.so.5 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libncursesw.so.5 ncurses-libs-5.8_1 ignore
-libnetcdf.so.13 netcdf-4.6.0_2
+libnetcdf.so.15 netcdf-4.7.0_1
 libformw.so.5 ncurses-libs-5.9_13 ignore
 libformw.so.6 ncurses-libs-5.8_1 ignore
 libpanelw.so.5 ncurses-libs-5.9_13 ignore
@@ -401,7 +401,7 @@ libavutil.so.56 libavutil-4.0_1
 libavfilter.so.7 libavfilter-4.0_1
 libSDL-1.2.so.0 SDL-1.2.14_1
 libSDL_image-1.2.so.0 SDL_image-1.2.10_1
-libx264.so.152 x264-20180119.2245_1
+libx264.so.157 x264-20190507.2245_1
 libxvidcore.so.4 xvidcore-1.2.2_1
 libtag.so.1 taglib-1.6.1_1
 libtag-extras.so.1 taglib-extras-1.0.1_1
@@ -2841,7 +2841,7 @@ libyaz_icu.so.5 yaz-5.23.1_1
 libyaz.so.5 yaz-5.23.1_1
 libyaz_server.so.5 yaz-5.23.1_1
 libgcab-1.0.so.0 gcab-0.7_1
-libliveMedia.so.65 live555-2018.12.14_1
+libliveMedia.so.66 live555-2019.05.03_1
 libgroupsock.so.8 live555-2018.12.14_1
 libUsageEnvironment.so.3 live555-2018.12.14_1
 libBasicUsageEnvironment.so.1 live555-2018.12.14_1
@@ -3450,3 +3450,15 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libaddress_sorting.so.7 grpc-1.19.1_1
+libgpr.so.7 grpc-1.19.1_1
+libgrpc++.so.1 grpc-1.19.1_1
+libgrpc++_cronet.so.1 grpc-1.19.1_1
+libgrpc++_error_details.so.1 grpc-1.19.1_1
+libgrpc++_reflection.so.1 grpc-1.19.1_1
+libgrpc++_unsecure.so.1 grpc-1.19.1_1
+libgrpc.so.7 grpc-1.19.1_1
+libgrpc_cronet.so.7 grpc-1.19.1_1
+libgrpc_unsecure.so.7 grpc-1.19.1_1
+libgrpcpp_channelz.so.1 grpc-1.19.1_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..b1bd31e87f1
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.old    2019-05-09 17:41:04.886554931 +0100
++++ src/Makefile.in        2019-05-09 17:40:36.072963121 +0100
+@@ -9,7 +9,7 @@
+
+ OBJS = libircclient.o
+
+-all:   @TARGET@
++all: libircclient.so libircclient.a
+
+ static:        libircclient.a
+ shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..be5f6e6845a
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,62 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+	
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (17 preceding siblings ...)
  2019-05-09 17:17 ` voidlinux-github
@ 2019-05-09 17:17 ` voidlinux-github
  2019-05-09 17:21 ` voidlinux-github
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 17:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/maciozo/void-packages libircclient
https://github.com/void-linux/void-packages/pull/11495

[WIP] New package: libircclient-1.10
I'm not sure if I'm handling the .so files correctly, so any guidance would be appreciated.

I've tested the library only (running irctest.c) on x86_64-glibc.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libircclient-11495.patch --]
[-- Type: application/text/x-diff, Size: 5705 bytes --]

From d8e171b8c94c7e15964fa4de375b820a1bf1f4a1 Mon Sep 17 00:00:00 2001
From: maciozo <maciozo@maciozo.com>
Date: Sat, 4 May 2019 22:26:02 +0100
Subject: [PATCH] [WIP] New package: libircclient-1.10

---
 common/shlibs                                 | 18 +++++-
 srcpkgs/libircclient-devel                    |  1 +
 srcpkgs/libircclient/files/libircclient.pc    |  7 +++
 .../patches/build_shared_and_static.patch     | 11 ++++
 srcpkgs/libircclient/template                 | 62 +++++++++++++++++++
 5 files changed, 96 insertions(+), 3 deletions(-)
 create mode 120000 srcpkgs/libircclient-devel
 create mode 100644 srcpkgs/libircclient/files/libircclient.pc
 create mode 100644 srcpkgs/libircclient/patches/build_shared_and_static.patch
 create mode 100644 srcpkgs/libircclient/template

diff --git a/common/shlibs b/common/shlibs
index 5bdd8d9832a..083326a331b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,7 +72,7 @@ libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncurses.so.5 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libncursesw.so.5 ncurses-libs-5.8_1 ignore
-libnetcdf.so.13 netcdf-4.6.0_2
+libnetcdf.so.15 netcdf-4.7.0_1
 libformw.so.5 ncurses-libs-5.9_13 ignore
 libformw.so.6 ncurses-libs-5.8_1 ignore
 libpanelw.so.5 ncurses-libs-5.9_13 ignore
@@ -401,7 +401,7 @@ libavutil.so.56 libavutil-4.0_1
 libavfilter.so.7 libavfilter-4.0_1
 libSDL-1.2.so.0 SDL-1.2.14_1
 libSDL_image-1.2.so.0 SDL_image-1.2.10_1
-libx264.so.152 x264-20180119.2245_1
+libx264.so.157 x264-20190507.2245_1
 libxvidcore.so.4 xvidcore-1.2.2_1
 libtag.so.1 taglib-1.6.1_1
 libtag-extras.so.1 taglib-extras-1.0.1_1
@@ -2841,7 +2841,7 @@ libyaz_icu.so.5 yaz-5.23.1_1
 libyaz.so.5 yaz-5.23.1_1
 libyaz_server.so.5 yaz-5.23.1_1
 libgcab-1.0.so.0 gcab-0.7_1
-libliveMedia.so.65 live555-2018.12.14_1
+libliveMedia.so.66 live555-2019.05.03_1
 libgroupsock.so.8 live555-2018.12.14_1
 libUsageEnvironment.so.3 live555-2018.12.14_1
 libBasicUsageEnvironment.so.1 live555-2018.12.14_1
@@ -3450,3 +3450,15 @@ liboblibs.so.0.0 oblibs-0.0.1.1_1
 libaal-1.0.so.7 libaal-1.0.7_1
 libaal-minimal.so.0 libaal-1.0.7_1
 libcli.so.1.9 libcli-1.9.8.4_1
+libaddress_sorting.so.7 grpc-1.19.1_1
+libgpr.so.7 grpc-1.19.1_1
+libgrpc++.so.1 grpc-1.19.1_1
+libgrpc++_cronet.so.1 grpc-1.19.1_1
+libgrpc++_error_details.so.1 grpc-1.19.1_1
+libgrpc++_reflection.so.1 grpc-1.19.1_1
+libgrpc++_unsecure.so.1 grpc-1.19.1_1
+libgrpc.so.7 grpc-1.19.1_1
+libgrpc_cronet.so.7 grpc-1.19.1_1
+libgrpc_unsecure.so.7 grpc-1.19.1_1
+libgrpcpp_channelz.so.1 grpc-1.19.1_1
+libircclient.so.1 libircclient-1.10_1
diff --git a/srcpkgs/libircclient-devel b/srcpkgs/libircclient-devel
new file mode 120000
index 00000000000..2dfa3a687e7
--- /dev/null
+++ b/srcpkgs/libircclient-devel
@@ -0,0 +1 @@
+libircclient
\ No newline at end of file
diff --git a/srcpkgs/libircclient/files/libircclient.pc b/srcpkgs/libircclient/files/libircclient.pc
new file mode 100644
index 00000000000..ca92609cb9c
--- /dev/null
+++ b/srcpkgs/libircclient/files/libircclient.pc
@@ -0,0 +1,7 @@
+prefix=/usr
+libdir=${prefix}/lib
+
+Name: libircclient
+Description: IRC client library
+Version: 1.10
+Libs: -L${libdir} -lircclient -lcrypto -lssl
diff --git a/srcpkgs/libircclient/patches/build_shared_and_static.patch b/srcpkgs/libircclient/patches/build_shared_and_static.patch
new file mode 100644
index 00000000000..b1bd31e87f1
--- /dev/null
+++ b/srcpkgs/libircclient/patches/build_shared_and_static.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.old    2019-05-09 17:41:04.886554931 +0100
++++ src/Makefile.in        2019-05-09 17:40:36.072963121 +0100
+@@ -9,7 +9,7 @@
+
+ OBJS = libircclient.o
+
+-all:   @TARGET@
++all: libircclient.so libircclient.a
+
+ static:        libircclient.a
+ shared: libircclient.so
diff --git a/srcpkgs/libircclient/template b/srcpkgs/libircclient/template
new file mode 100644
index 00000000000..be5f6e6845a
--- /dev/null
+++ b/srcpkgs/libircclient/template
@@ -0,0 +1,62 @@
+# Template file for 'libircclient'
+pkgname=libircclient
+version=1.10
+revision=1
+build_style=gnu-configure
+configure_args="--enable-openssl --enable-ipv6 --enable-shared"
+makedepends="libressl-devel"
+short_desc="IRC client library"
+maintainer="maciozo@maciozo.com <maciozo@maciozo.com>"
+license="LGPL-3.0-or-later"
+homepage="https://www.ulduzsoft.com/linux/libircclient/"
+distfiles="https://netix.dl.sourceforge.net/project/libircclient/libircclient/${version}/libircclient-${version}.tar.gz"
+checksum=bbb26f3af348b252c5204917a7f91cfdf172f1b6afbf4df1e561b03e20503c2d
+
+case "$XBPS_TARGET_MACHINE" in
+	*-musl)	depends+=" musl-devel";;
+	*) depends+=" glibc-devel";;
+esac
+
+do_install() {
+	vmkdir usr/lib
+	vcopy src/*.so /usr/lib
+	vcopy src/*.a /usr/lib
+	
+	# Generate versioned shlib link (libircclient.so.x -> libircclient.so)
+	
+	for _sharedlib in ${PKGDESTDIR}/usr/lib/*.so; do
+		echo $(basename ${_sharedlib})
+		_soname=$(objdump -p ${_sharedlib} | awk '/SONAME/ {print $2}')
+		ln -s $(basename ${_sharedlib}) ${PKGDESTDIR}/usr/lib/${_soname}
+	done
+	
+	vmkdir usr/include
+	vcopy include/* /usr/include
+	
+	vmkdir usr/share/doc/${pkgname}
+	vcopy doc/*.rst /usr/share/doc/${pkgname}
+	
+	vmkdir usr/share/doc/${pkgname}/sources
+	vcopy doc/sources/*.rst /usr/share/doc/${pkgname}/sources
+}
+
+libircclient-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+
+	pkg_install() {
+		vmkdir usr/share/doc/${pkgname}
+		vmove usr/share/doc/${sourcepkg}/*
+
+		vmkdir usr/lib/pkgconfig
+		vcopy ${FILESDIR}/libircclient.pc /usr/lib/pkgconfig/
+
+		vmkdir usr/include
+		vmove usr/include
+		
+		vmkdir usr/lib
+		vmove "usr/lib/*.a"
+		
+		vman man/libircclient.1
+	}
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (18 preceding siblings ...)
  2019-05-09 17:17 ` voidlinux-github
@ 2019-05-09 17:21 ` voidlinux-github
  2019-05-09 17:24 ` voidlinux-github
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 17:21 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490991834
Comment:
I have no idea what the shlibs conflict is about

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (19 preceding siblings ...)
  2019-05-09 17:21 ` voidlinux-github
@ 2019-05-09 17:24 ` voidlinux-github
  2019-05-09 18:01 ` voidlinux-github
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 17:24 UTC (permalink / raw)
  To: ml

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

New comment by maciozo on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-490991834
Comment:
I have no idea what the shlibs conflict is about. The file should be identical to the current master, with `libircclient` appended.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (20 preceding siblings ...)
  2019-05-09 17:24 ` voidlinux-github
@ 2019-05-09 18:01 ` voidlinux-github
  2019-05-09 18:46 ` voidlinux-github
  2019-05-09 18:48 ` voidlinux-github
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 18:01 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-491005662
Comment:
I'll take a closer look at this.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (21 preceding siblings ...)
  2019-05-09 18:01 ` voidlinux-github
@ 2019-05-09 18:46 ` voidlinux-github
  2019-05-09 18:48 ` voidlinux-github
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 18:46 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-491021621
Comment:
This [template](https://gist.github.com/pullmoll/34c4dd237264191697cf501950aa4a79#file-libircclient-template) works for me. You need to replace `1.10` with `@version@` in `files/libircclient.pc` so that the sed can replace it with the current `$version` and you don't have to update that file for a new version.

It seems you merged master to your branch without `--rebase` which is why now `common/libs` conflicts. Perhaps save your files, reset your branch and force push to this PR after adding the files back.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [WIP] New package: libircclient-1.10
  2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
                   ` (22 preceding siblings ...)
  2019-05-09 18:46 ` voidlinux-github
@ 2019-05-09 18:48 ` voidlinux-github
  23 siblings, 0 replies; 25+ messages in thread
From: voidlinux-github @ 2019-05-09 18:48 UTC (permalink / raw)
  To: ml

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

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/11495#issuecomment-491021621
Comment:
This [template](https://gist.github.com/pullmoll/34c4dd237264191697cf501950aa4a79#file-libircclient-template) works for me. You need to replace `1.10` with `@version@` in `files/libircclient.pc` so that the sed can replace it with the current `$version` and you don't have to update that file for a new version.

It seems you merged master to your branch without `--rebase` which is why now `common/libs` conflicts. Perhaps save your files, reset your branch and force push to this PR after adding the files back.

Oh, I didn't try to build the static library. Do you really need it?

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2019-05-09 18:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-04 21:41 [PR PATCH] [WIP] New package: libircclient-1.10 voidlinux-github
2019-05-04 22:07 ` voidlinux-github
2019-05-04 23:28 ` [PR PATCH] [Updated] " voidlinux-github
2019-05-04 23:28 ` voidlinux-github
2019-05-04 23:35 ` voidlinux-github
2019-05-04 23:35 ` voidlinux-github
2019-05-04 23:37 ` voidlinux-github
2019-05-04 23:37 ` voidlinux-github
2019-05-05  0:03 ` voidlinux-github
2019-05-05  0:43 ` voidlinux-github
2019-05-07 17:39 ` voidlinux-github
2019-05-09 16:05 ` [PR PATCH] [Updated] " voidlinux-github
2019-05-09 16:05 ` voidlinux-github
2019-05-09 16:06 ` voidlinux-github
2019-05-09 16:10 ` voidlinux-github
2019-05-09 16:29 ` voidlinux-github
2019-05-09 16:48 ` [PR PATCH] [Updated] " voidlinux-github
2019-05-09 16:48 ` voidlinux-github
2019-05-09 17:17 ` voidlinux-github
2019-05-09 17:17 ` voidlinux-github
2019-05-09 17:21 ` voidlinux-github
2019-05-09 17:24 ` voidlinux-github
2019-05-09 18:01 ` voidlinux-github
2019-05-09 18:46 ` voidlinux-github
2019-05-09 18:48 ` voidlinux-github

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).