pkgname=iproute2 pkgver=6.12.0 pkgrel=1 pkgdesc="IP Routing Utilities" arch=('x86_64') url="https://www.kernel.org/pub/linux/utils/net/iproute2/" license=('GPL-2.0-only') groups=('base') depends=('glibc' 'libcap' 'libelf') source=(https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(bbd141ef7b5d0127cc2152843ba61f274dc32814fa3e0f13e7d07a080bef53d9) prepare() { cd ${pkgname}-${pkgver} sed -i /ARPD/d Makefile rm -fv man/man8/arpd.8 } build() { cd ${pkgname}-${pkgver} make CC=${CHOST}-gcc NETNS_RUN_DIR=/run/netns } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} SBINDIR=/usr/sbin LIBDIR=/usr/lib64 install install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} cp -v COPYING README* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }