blob: 58dc88d4e07dd8f5b40d686dfa4eb3b7580b3972 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"
|