smlinux/net/iproute2/smbuild

36 lines
943 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=iproute2
version=6.3.0
build=1sml
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
download="https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-$version.tar.xz"
desc="Advanced IP routing utilities for the linux kernel"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
#applypatch $srcdir/fix-install-errors.patch
#applypatch $srcdir/musl-fixes.patch
}
build() {
./configure \
--prefix=/usr
make
make install DESTDIR=$pkg PREFIX=/usr SBINDIR="/usr/bin" MANDIR="/usr/share/man" LIBDIR="/usr/lib" KERNEL_INCLUDE="/usr/include"
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
aec1d8ceb54c8849a075ec1ce079678638e05ccaec093e8b3cbc7243b5fafea2a8c11f10930fced3df82f52d6750aa325178e44f9058e37a556ab108d4a968bf iproute2-6.3.0.tar.xz
"