summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2024-10-10 02:50:47 +0000
committerLaurent Bercot <ska-adelie@skarnet.org>2024-10-10 02:50:47 +0000
commit3e08e2bf85000b9eb3970498a20034f2568d6782 (patch)
tree4188efcea4fef085d1cefbdede7b3967ebe2fc9a
parentfe30e26c5438960e31358a0d754689b6f7b2ba55 (diff)
downloadpackages-3e08e2bf85000b9eb3970498a20034f2568d6782.tar.gz
packages-3e08e2bf85000b9eb3970498a20034f2568d6782.tar.bz2
packages-3e08e2bf85000b9eb3970498a20034f2568d6782.tar.xz
packages-3e08e2bf85000b9eb3970498a20034f2568d6782.zip
system/skalibs: upgrade to 2.14.3.0
Also add .pc file
-rw-r--r--system/skalibs/APKBUILD16
-rw-r--r--system/skalibs/skalibs.pc.in5
2 files changed, 14 insertions, 7 deletions
diff --git a/system/skalibs/APKBUILD b/system/skalibs/APKBUILD
index acef0c29c..d1f6e1f8d 100644
--- a/system/skalibs/APKBUILD
+++ b/system/skalibs/APKBUILD
@@ -1,26 +1,27 @@
# Contributor: Laurent Bercot <ska-adelie@skarnet.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=skalibs
-pkgver=2.14.2.0
+pkgver=2.14.3.0
pkgrel=0
pkgdesc="A set of general-purpose C programming libraries for skarnet.org software"
url="https://skarnet.org/software/skalibs/"
arch="all"
options="!check" # No test suite.
license="ISC"
-subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
-source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz skalibs.pc.in"
build() {
./configure \
- --enable-shared \
- --enable-static \
- --libdir=/usr/lib
+ --with-sysdeps-devurandom=yes \
+ --with-sysdeps-posixspawnearlyreturn=no
make
}
package() {
make DESTDIR="$pkgdir" install
+ sed -e "s/@@VERSION@@/$pkgver/g;" "$srcdir/$pkgname.pc.in" > "$srcdir/$pkgname.pc"
+ install -D -m 0644 "$srcdir/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
mkdir -p -m 0755 "$pkgdir/usr/share/doc"
cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname"
}
@@ -31,4 +32,5 @@ dev() {
mv "$pkgdir/usr/lib/skalibs/sysdeps" "$subpkgdir/usr/lib/skalibs/"
}
-sha512sums="b96491e6429cc69bc75f50be99b7b18769cb756c1a82f698994c23aefb16bc68ee5558076993b948a6674203ecd82a454a978c89f450c219cc2728d52b7f5656 skalibs-2.14.2.0.tar.gz"
+sha512sums="f40222740494425477252e78c772edda3f6cb201723558c513acb6c87d55a0f3432c918acf112c9457ed3ff0ee71bf5192f61b1c9070e668f219fd6d3f6f3bfa skalibs-2.14.3.0.tar.gz
+5771f0e72e7e7e9a45cafdf2e4508938a29ff9474845c897e383004b031ad142dee1b65d83a9a0168696782163cb4a32f82db4d7360413b433e68282cd4cc487 skalibs.pc.in"
diff --git a/system/skalibs/skalibs.pc.in b/system/skalibs/skalibs.pc.in
new file mode 100644
index 000000000..33849426f
--- /dev/null
+++ b/system/skalibs/skalibs.pc.in
@@ -0,0 +1,5 @@
+Name: skalibs
+Description: The skarnet.org general-purpose C library.
+URL: https://skarnet.org/software/skalibs/
+Version: @@VERSION@@
+Libs: -lskarnet