# Description: list open files
# URL: https://github.com/lsof-org/lsof
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libtirpc

name=lsof
version=4.99.3
release=1
source=(https://github.com/lsof-org/lsof/archive/$version/$name-$version.tar.gz)

build() {
	cd $name-$version

	./Configure -n linux
	make CC="cc $CFLAGS"

	install -d $PKG/usr/{sbin,share/man/man8}
	install -m 755 lsof $PKG/usr/sbin
	soelim Lsof.8 > $PKG/usr/share/man/man8/lsof.8
}
