pkgname=libnl pkgver=3.11.0 pkgrel=1 pkgdesc="Library for applications dealing with netlink sockets" arch=('x86_64') url="https://github.com/thom311/libnl" license=('LGPL-2.1-or-later') depends=('glibc' 'gcc-libs') backup=(etc/libnl/classid etc/libnl/pktloc) source=(https://github.com/thom311/libnl/releases/download/${pkgname}${pkgver//./_}/${pkgname}-${pkgver}.tar.gz https://github.com/thom311/libnl/releases/download/${pkgname}${pkgver//./_}/${pkgname}-doc-${pkgver}.tar.gz) sha256sums=(2a56e1edefa3e68a7c00879496736fdbf62fc94ed3232c0baba127ecfa76874d c8f53b7fd9c54d82d3d8419305fd69de8f6e17ef8d640c015fca7e6f0179c6da) build() { cd ${pkgname}-${pkgver} local configure_args=( --sysconfdir=/etc --disable-static ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} mv -v ${srcdir}/${pkgname}-doc-${pkgver}/* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }