summaryrefslogtreecommitdiff
path: root/user/libnl3
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 19:26:37 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 19:26:37 -0500
commite8b1b68f0a79b2418768ada3e3e2436aa84296e8 (patch)
tree1ae10ec4b6488ce165ed6efb6694b73bc26b57f2 /user/libnl3
parent2681a68a20f5ce556f0e568082ebd779acd0cb94 (diff)
downloadpackages-e8b1b68f0a79b2418768ada3e3e2436aa84296e8.tar.gz
packages-e8b1b68f0a79b2418768ada3e3e2436aa84296e8.tar.bz2
packages-e8b1b68f0a79b2418768ada3e3e2436aa84296e8.tar.xz
packages-e8b1b68f0a79b2418768ada3e3e2436aa84296e8.zip
user/libnl3: pull in, [??? version], modernise
Diffstat (limited to 'user/libnl3')
-rw-r--r--user/libnl3/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/libnl3/APKBUILD b/user/libnl3/APKBUILD
new file mode 100644
index 000000000..58dc88d4e
--- /dev/null
+++ b/user/libnl3/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer:
+pkgname=libnl3
+pkgver=3.2.28
+pkgrel=2
+pkgdesc="Library for applications dealing with netlink sockets"
+url="http://www.infradead.org/~tgr/libnl/"
+arch="all"
+license="LGPL-2.1-only AND GPL-2.0-only"
+depends=""
+makedepends="linux-headers flex bison"
+checkdepends="check-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-cli"
+source="https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/libnl-$pkgver.tar.gz"
+builddir="$srcdir"/libnl-$pkgver
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-unit-tests
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+cli() {
+ pkgdesc="Command line interface utils for libnl3"
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libnl-cli*.so.* \
+ "$pkgdir"/usr/lib/libnl \
+ "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="b5f145ecafb2625ed1c42594afd6063f112a601077de5c35884b3c3bc8c562b29b52a006ccebd795c127fe69692a82def425c8605afed7e6d441582943e803d9 libnl-3.2.28.tar.gz"