From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: libircclient-1.10
Date: Thu, 09 May 2019 18:48:48 +0200 [thread overview]
Message-ID: <20190509164848.3PYr745sBVcBuXltUY_V1ZvG_ogNJNiLkMhGrYtKbn4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11495@inbox.vuxu.org>
[-- 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
+ }
+}
next prev parent reply other threads:[~2019-05-09 16:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-04 21:41 [PR PATCH] " 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 ` voidlinux-github [this message]
2019-05-09 16:48 ` [PR PATCH] [Updated] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190509164848.3PYr745sBVcBuXltUY_V1ZvG_ogNJNiLkMhGrYtKbn4@z \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).