APP=lsof
VERSION=4.93.2
BUILD=1sml
HOMEPAGE='https://github.com/lsof-org/lsof'
DOWNLOAD='https://github.com/lsof-org/lsof/archive/refs/tags/4.93.2.tar.gz'
DESC="list info about files open by processes"
REQUIRES="libtirpc"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./Configure -n linux

  make CC="$CC" LDFLAGS="-static"
  cp 00README $PKGDOCS/LICENSE

  install -Dm 755 lsof $PKG/bin/lsof
  install -Dm 644 Lsof.8 $PKG/share/man/man8/lsof.8

  mkfinalpkg
}

SHA512SUMS="
69072f26ea4f2a7b0d56785ad364281cf71339f094d09c2b9b66469e60e8ee0ce3e08ea17a1d6b100308722877e568b41b9b05b7409f04a90e119f3334313fdf  lsof-4.93.2.tar.lz
"
