Github messages for voidlinux
 help / color / mirror / Atom feed
From: kevcrumb <kevcrumb@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: i2pd-devel-2.46.0
Date: Wed, 22 Mar 2023 17:21:16 +0100	[thread overview]
Message-ID: <20230322162116.oYDLa9RuVOQP5vG78J8xA7TCNE9wzj54APTQPMuOW-c@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42915@inbox.vuxu.org>

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

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

https://github.com/kevcrumb/void-packages i2pd-devel
https://github.com/void-linux/void-packages/pull/42915

New package: i2pd-devel-2.46.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-glibc
  - aarch64-musl
  - aarch64-glibc

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-i2pd-devel-42915.patch --]
[-- Type: text/x-diff, Size: 1798 bytes --]

From b95207c04858f9a327a5f3bcf5d7161489a9bc88 Mon Sep 17 00:00:00 2001
From: Kevin Crumb <kevcrumb@splitlinux.org>
Date: Wed, 22 Mar 2023 01:10:52 +0000
Subject: [PATCH] i2pd: add -devel subpackage

---
 srcpkgs/i2pd-devel    |  1 +
 srcpkgs/i2pd/template | 20 +++++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/i2pd-devel

diff --git a/srcpkgs/i2pd-devel b/srcpkgs/i2pd-devel
new file mode 120000
index 000000000000..6a68f8b39558
--- /dev/null
+++ b/srcpkgs/i2pd-devel
@@ -0,0 +1 @@
+i2pd
\ No newline at end of file
diff --git a/srcpkgs/i2pd/template b/srcpkgs/i2pd/template
index 91e085f41aca..d74853fa4f41 100644
--- a/srcpkgs/i2pd/template
+++ b/srcpkgs/i2pd/template
@@ -3,6 +3,7 @@ pkgname=i2pd
 version=2.46.0
 revision=1
 build_style=gnu-makefile
+make_build_target="all api"
 make_build_args="USE_UPNP=yes"
 makedepends="zlib-devel boost-devel openssl-devel miniupnpc-devel
  libatomic-devel"
@@ -27,6 +28,13 @@ case "${XBPS_TARGET_MACHINE}" in
 esac
 
 do_install() {
+	# Static library and headers for the -devel package
+	vinstall libi2pd.a 644 usr/lib
+	vinstall libi2pd.so 755 usr/lib
+	vmkdir usr/include
+	vcopy "libi2pd/*.h" usr/include
+
+	# Configuration for the main package
 	vbin i2pd
 	vman debian/i2pd.1
 	vinstall contrib/i2pd.conf 644 etc/i2pd
@@ -37,5 +45,15 @@ do_install() {
 	vmkdir usr/share/i2pd
 	vcopy contrib/certificates usr/share/i2pd
 	vmkdir var/lib/i2pd
-	ln -s /usr/share/i2pd/certificates ${DESTDIR}/var/lib/i2pd/certificates
+	ln -sf /usr/share/i2pd/certificates ${DESTDIR}/var/lib/i2pd/certificates
+}
+
+i2pd-devel_package() {
+	depends="i2pd>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove "usr/include/*.h"
+	}
 }

  parent reply	other threads:[~2023-03-22 16:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22  2:35 [PR PATCH] " kevcrumb
2023-03-22  4:15 ` [PR REVIEW] " classabbyamp
2023-03-22  4:15 ` classabbyamp
2023-03-22  7:25 ` paper42
2023-03-22  8:55 ` [PR REVIEW] " classabbyamp
2023-03-22 16:21 ` kevcrumb [this message]
2023-03-22 19:50 ` [PR REVIEW] i2pd: add -devel subpackage classabbyamp
2023-03-23 14:20 ` [PR PATCH] [Updated] " kevcrumb
2023-03-23 14:23 ` kevcrumb
2023-04-12 21:16 ` kevcrumb
2023-04-12 23:45 ` [PR PATCH] [Merged]: " classabbyamp

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=20230322162116.oYDLa9RuVOQP5vG78J8xA7TCNE9wzj54APTQPMuOW-c@z \
    --to=kevcrumb@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

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

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