summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/bcnm/APKBUILD30
-rw-r--r--user/bcnm/bcnm.pc.in6
-rw-r--r--user/bcnm/wpactrl.pc.in6
3 files changed, 31 insertions, 11 deletions
diff --git a/user/bcnm/APKBUILD b/user/bcnm/APKBUILD
index b239ef05c..1a3c6380b 100644
--- a/user/bcnm/APKBUILD
+++ b/user/bcnm/APKBUILD
@@ -1,31 +1,39 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=bcnm
-pkgver=0.0.1.6
+pkgver=0.0.1.8
pkgrel=0
pkgdesc="Client network manager"
url="https://skarnet.org/software/bcnm/"
arch="all"
options="!check" # No test suite.
license="ISC"
+_skalibs_version=2.14.3
depends=""
-makedepends="skalibs-dev>=2.13"
-subpackages="$pkgname-dev"
-source="https://skarnet.org/software/bcnm/bcnm-$pkgver.tar.gz"
+makedepends="skalibs-dev>=$_skalibs_version"
+subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
+source="https://skarnet.org/software/bcnm/bcnm-$pkgver.tar.gz
+ $pkgname.pc.in
+ wpactrl.pc.in"
build() {
./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --localstatedir=/var
+ --enable-shared \
+ --disable-allstatic \
+ --prefix=/usr
make
}
package() {
make DESTDIR="$pkgdir" install
+ sed -e "s/@@VERSION@@/$pkgver/g; s/@@SKALIBS_VERSION@@/${_skalibs_version}/g;" "$srcdir/$pkgname.pc.in" > "$srcdir/$pkgname.pc"
+ sed -e "s/@@VERSION@@/$pkgver/g; s/@@SKALIBS_VERSION@@/${_skalibs_version}/g;" "$srcdir/wpactrl.pc.in" > "$srcdir/wpactrl.pc"
+ install -D -m 0644 "$srcdir/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
+ install -D -m 0644 "$srcdir/wpactrl.pc" "$pkgdir/usr/lib/pkgconfig/wpactrl.pc"
+ mkdir -p "$pkgdir/usr/share/doc"
+ cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname"
}
-sha512sums="07418f685f99be042fd782b29732b6175f3e1774eba2f4d54fbaf4bbbaa1af2f8c3f1cfbb1a103e6ba069eef97d449a92479078ec8c4b4b6331dc1431dcccd90 bcnm-0.0.1.6.tar.gz"
+sha512sums="78868ba9f5c58acba1e8283492929164096a9e66ea8fd6fc6b5adb4c81bce78cba96173afb4510daa0e16b79313d0ee9ef790523b062f4ceb181ecdea5973f9a bcnm-0.0.1.8.tar.gz
+168127832b78284e4388fa983ea44612e760ca3b5789a863a4a82adb8a75044e006640711a8426d321bb2995425a8cb8e1fb8f788e6d09e5f7b93e55a457fdb6 bcnm.pc.in
+ccc46c7a918328236cc5730710a114d06fb91fa6f023f853df70725581469b5b980dc3a5d20046df26393d21b51b4c87f1588cb5fa6cd065b32801a4dfeebb72 wpactrl.pc.in"
diff --git a/user/bcnm/bcnm.pc.in b/user/bcnm/bcnm.pc.in
new file mode 100644
index 000000000..710ae09ec
--- /dev/null
+++ b/user/bcnm/bcnm.pc.in
@@ -0,0 +1,6 @@
+Name: bcnm
+Description: C library to get network interface information
+URL: https://skarnet.org/software/bcnm/
+Version: @@VERSION@@
+Requires.private: skalibs >= @@SKALIBS_VERSION@@
+Libs: -lbcnm
diff --git a/user/bcnm/wpactrl.pc.in b/user/bcnm/wpactrl.pc.in
new file mode 100644
index 000000000..09b893dc6
--- /dev/null
+++ b/user/bcnm/wpactrl.pc.in
@@ -0,0 +1,6 @@
+Name: wpactrl
+Description: C Library to control wpa_supplicant
+URL: https://skarnet.org/software/bcnm/
+Version: @@VERSION@@
+Requires.private: skalibs >= @@SKALIBS_VERSION@@
+Libs: -lwpactrl