Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] bzip2-devel: add pkgconfig file
Date: Fri, 11 Nov 2022 14:22:55 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40468@inbox.vuxu.org> (raw)

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

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

https://github.com/tranzystorek-io/void-packages bzip2-pkgconfig
https://github.com/void-linux/void-packages/pull/40468

bzip2-devel: add pkgconfig file
<!-- Uncomment relevant sections and delete options which are not applicable -->

Adapted from [Arch Linux](https://github.com/archlinux/svntogit-packages/commit/e2cc08098f31fc7110131782626d22939731b7d5)

#### Testing the changes
- I tested the changes in this PR: **briefly**

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bzip2-pkgconfig-40468.patch --]
[-- Type: text/x-diff, Size: 1788 bytes --]

From 6a71efe518a2f8f0ec46c551bc1768a2570db769 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Fri, 11 Nov 2022 14:10:25 +0100
Subject: [PATCH] bzip2-devel: add pkgconfig file

---
 srcpkgs/bzip2/files/bzip2.pc | 11 +++++++++++
 srcpkgs/bzip2/template       |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/bzip2/files/bzip2.pc

diff --git a/srcpkgs/bzip2/files/bzip2.pc b/srcpkgs/bzip2/files/bzip2.pc
new file mode 100644
index 000000000000..a4dd68259cec
--- /dev/null
+++ b/srcpkgs/bzip2/files/bzip2.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=/usr
+bindir=${exec_prefix}/bin
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: bzip2
+Description: A file compression library
+Version: @VERSION@
+Libs: -L${libdir} -lbz2
+Cflags: -I${includedir}
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index c39a9427efb1..05a68132b828 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -1,7 +1,7 @@
 # Template file for 'bzip2'
 pkgname=bzip2
 version=1.0.8
-revision=1
+revision=2
 bootstrap=yes
 short_desc="Freely available, patent free, high-quality data compressor"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -35,6 +35,9 @@ do_install() {
 	vinstall libbz2.a 644 usr/lib
 	vinstall bzlib.h 644 usr/include
 
+	vinstall "${FILESDIR}/bzip2.pc" 644 usr/lib/pkgconfig
+	vsed -i "s/@VERSION@/${version}/" "${DESTDIR}/usr/lib/pkgconfig/bzip2.pc"
+
 	vman bzip2.1
 	ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bunzip2.1
 	ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzcat.1
@@ -46,6 +49,7 @@ bzip2-devel_package() {
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
+		vmove usr/lib/pkgconfig
 		vmove "usr/lib/*.a"
 		vmove "usr/lib/*.so"
 	}

             reply	other threads:[~2022-11-11 13:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 13:22 tranzystorek-io [this message]
2022-11-15 11:41 ` 0x5c
2022-11-15 11:42 ` 0x5c
2023-02-14  2:02 ` github-actions
2023-02-26 19:43 ` [PR PATCH] [Updated] " tranzystorek-io
2023-05-29  1:57 ` github-actions
2023-05-29  8:36 ` [PR PATCH] [Merged]: " the-maldridge

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-40468@inbox.vuxu.org \
    --to=tranzystorek-io@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).