# Maintainer: PktSurf <smlinux@pktsurf.in>
app=which
version=2.21
build=1sml
homepage="https://savannah.gnu.org/projects/which/"
download="http://ftp.gnu.org/gnu/which/which-$version.tar.gz"
desc="Shows the full path to shell commands"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  LDFLAGS="-static" \
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
467993862114fda14ee25b3a504cd843a9c3f70ded2345d47f2274fe85124215e2d17a463fd520cacf14b7478a7fd12700cbff999d2c7ba11e1e4afc3fb5a8d7  which-2.21.tar.lz
"
