# Maintainer: PktSurf <smlinux@pktsurf.in>
app=makedepend
version=1.0.6
build=1sml
homepage="https://gitlab.freedesktop.org/xorg/util/makedepend"
download="https://gitlab.freedesktop.org/xorg/util/makedepend/-/archive/makedepend-$version/makedepend-makedepend-$version.tar.bz2"
desc="Utility to parse C source files to make dependency lists for Makefiles"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f0104c9dc11f43523f066bfbb995a0ec789638eb7546d84450970def7343ac0aa2b5290fd587fd8808fcfaa04a7192fc75305e3b7afaf62f87105fe40b5c5763  makedepend-1.0.6.tar.lz
"
