summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/execline/APKBUILD18
-rw-r--r--system/execline/execline.pc.in6
2 files changed, 15 insertions, 9 deletions
diff --git a/system/execline/APKBUILD b/system/execline/APKBUILD
index d4d136a2e..8a912713f 100644
--- a/system/execline/APKBUILD
+++ b/system/execline/APKBUILD
@@ -1,35 +1,35 @@
# Contributor: Laurent Bercot <ska-adelie@skarnet.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=execline
-pkgver=2.9.6.0
+pkgver=2.9.6.1
pkgrel=0
pkgdesc="A small scripting language for non-interactive scripts"
url="https://skarnet.org/software/execline/"
arch="all"
options="!check" # No test suite.
license="ISC"
-_skalibs_version=2.14
+_skalibs_version=2.14.3
depends_dev="skalibs-dev>=$_skalibs_version"
makedepends="$depends_dev"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
-source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
+source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz execline.pc.in"
build() {
./configure \
--enable-shared \
- --enable-static \
- --enable-allstatic \
--enable-static-libc \
- --libdir=/usr/lib \
- --with-dynlib=/lib \
--enable-pedantic-posix
make
}
package() {
make DESTDIR="$pkgdir" install
- mkdir -p -m 0755 "$pkgdir/usr/share/doc"
+ mkdir -p -m 0755 "$pkgdir/usr/share/doc" "$pkgdir/usr/bin"
+ sed -e "s/@@VERSION@@/$pkgver/g; s/@@SKALIBS_VERSION@@/${_skalibs_version}/g;" "$srcdir/$pkgname.pc.in" > "$srcdir/$pkgname.pc"
+ install -D -m 0644 "$srcdir/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname"
+ ln -s ../bin/execlineb "$pkgdir/usr/bin/execlineb"
}
-sha512sums="1c5233b0f17b4c92ab2e9e8700b47c8429ad97962bcb7c83190d0b3251b26584e591d77418eca77e8112cdecd24eec50aaca7da1dbb506120931bbda39f2b7cb execline-2.9.6.0.tar.gz"
+sha512sums="86e20a63926cc03cb81e07c9cbea9da5d0384436a82b93e331da6b3ced33829baf5adae4286d2c053b21474d41602d53804ff0bc280da60f7bccc64cbe5f601e execline-2.9.6.1.tar.gz
+54026153ee1b96357bdf4614c520a287b34db1ded012cb563240c1292daea33af6da6b39a051ad18dd5b53a1d42c25cc109185ce83c8cbc67fcb098a9418d78e execline.pc.in"
diff --git a/system/execline/execline.pc.in b/system/execline/execline.pc.in
new file mode 100644
index 000000000..c0b28d9df
--- /dev/null
+++ b/system/execline/execline.pc.in
@@ -0,0 +1,6 @@
+Name: execline
+Description: the execline library for argv and envp manipulation
+URL: https://skarnet.org/software/execline/
+Version: @@VERSION@@
+Requires.private: skalibs >= @@SKALIBS_VERSION@@
+Libs: -lexecline