Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] bzip2-devel: add pkgconfig file
@ 2022-11-11 13:22 tranzystorek-io
  2022-11-15 11:41 ` 0x5c
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tranzystorek-io @ 2022-11-11 13:22 UTC (permalink / raw)
  To: ml

[-- 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"
 	}

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

end of thread, other threads:[~2023-05-29  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 13:22 [PR PATCH] bzip2-devel: add pkgconfig file tranzystorek-io
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

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