smlinux/net/ifstat/smbuild

34 lines
780 B
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ifstat
version=1.1
build=1sml
homepage="https://gael.roualland.free.fr/ifstat/"
download="https://gael.roualland.free.fr/ifstat/ifstat-$version.tar.gz"
desc="tiny real-time interface monitoring application"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr
make
install -Dm 755 ifstat $pkg/usr/bin/ifstat
install -Dm 644 ifstat.1 $pkg/usr/share/man/man1/ifstat.1
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
c8f58066f8b7c68439316e5bcdc46df3708d8f79053572f95b74a264d862cebc75a88849e763914de17a4918de9aacea95beee7363d0b43a1b939bfc989c780d ifstat-1.1.tar.lz
"