Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
libtlsrpt


Commits:
9e27c370 by Robin Candau at 2025-02-21T10:12:31+01:00
Add a *downstream* pkg-config integration (.pc file)

Upstream does not provide a pkg-config integration.

We should eventually look at upstreaming it at some point.

- - - - -


2 changed files:

- PKGBUILD
- + libtlsrpt.pc


Changes:

=====================================
PKGBUILD
=====================================
@@ -9,10 +9,15 @@ url="https://github.com/sys4/libtlsrpt";
 arch=('x86_64')
 license=('LGPL-3.0-or-later')
 depends=('glibc')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${_pkgver}.tar.gz")
-sha256sums=('c291750486d926a5d35b38f0e7557d5c715897388403a3159d7dc02bfa5b6179')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${_pkgver}.tar.gz"
+        "${pkgname}.pc")
+sha256sums=('c291750486d926a5d35b38f0e7557d5c715897388403a3159d7dc02bfa5b6179'
+            '2453d94ed066384097b210eb478a2c29f66fb081923cdd1d8c160fa116847903')
 
 prepare() {
+       # Upstream does not provide a pkg-config integration
+       sed -e "s/VERSION/${_pkgver}/" -i "${pkgname}.pc"
+
        cd "${pkgname}-${_pkgver}"
        autoreconf -vif 
 }
@@ -28,4 +33,6 @@ build() {
 package() {
        cd "${pkgname}-${_pkgver}"
        make DESTDIR="${pkgdir}" install
+
+       install -Dm 644 "${srcdir}/${pkgname}.pc" 
"${pkgdir}/usr/lib/pkgconfig/${pkgname}.pc"
 }


=====================================
libtlsrpt.pc
=====================================
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libtlsrpt
+Description: Library for TLSRPT
+Version: VERSION
+Libs: -L${libdir} -ltlsrpt
+Cflags: -I${includedir}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libtlsrpt/-/commit/9e27c370f4a25b507eebd87735276a593d4533a4

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libtlsrpt/-/commit/9e27c370f4a25b507eebd87735276a593d4533a4
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to