From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] New package: libircclient-1.10
Date: Sat, 04 May 2019 23:41:21 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11495@inbox.vuxu.org> (raw)
[-- 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
+ }
+}
next reply other threads:[~2019-05-04 21:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-04 21:41 voidlinux-github [this message]
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
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11495@inbox.vuxu.org \
--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).