34 lines
909 B
Bash
34 lines
909 B
Bash
pkgname=libnl
|
|
pkgver=3.10.0
|
|
_libnl_dir=${pkgver/_/}
|
|
_libnl_dir=${_libnl_dir//./_}
|
|
slot="3"
|
|
pkgdesc="Libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
|
homepage="https://www.infradead.org/~tgr/libnl/ https://github.com/thom311/libnl"
|
|
license=("LGPL-2.1")
|
|
sources=("${pkgname}-${pkgver/_rc/-rc}.tar.gz")
|
|
urls=("https://github.com/thom311/${pkgname}/releases/download/${pkgname}${_libnl_dir}/${sources[0]}")
|
|
sha512sums=("c95e79fba69308c63a08d0c576503b4398710ea9cd1d0097851500a7fbc5fbe87fb32ac281cf42bbfe57eab07b110055e6bc9b95d82244bba3df8a31fe562962")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
local conf_args=(
|
|
--prefix=/usr
|
|
--sysconfdir=/etc
|
|
--disable-static
|
|
--disable-cli
|
|
--disable-debug
|
|
)
|
|
./configure "${conf_args[@]}"
|
|
make
|
|
}
|
|
|
|
src_install() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|