diff --git a/iproute2/PKGBUILD b/iproute2/PKGBUILD new file mode 100644 index 0000000..e57f5b4 --- /dev/null +++ b/iproute2/PKGBUILD @@ -0,0 +1,39 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=iproute2 +pkgver=6.10.0 +pkgrel=1 +pkgdesc="IP Routing Utilities" +arch=('x86_64') +url="https://www.kernel.org/pub/linux/utils/net/iproute2/" +license=('GPL2') +groups=('base') +depends=('glibc' 'libcap' 'libelf') +source=(https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i /ARPD/d Makefile + rm -fv man/man8/arpd.8 +} + +build() { + cd ${pkgname}-${pkgver} + + make BUILD_CC=${CHOST}-gcc 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} +}