app=tree
version=1.6.0
build=1sml
homepage="http://mama.indstate.edu/users/ice/tree/"
download="http://mama.indstate.edu/users/ice/tree/src/tree-$version.tgz"
desc="program to display a directory tree"
requires="musl"

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

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

  make
  install -Dm 755 tree $pkg/bin/tree
  install -Dm 644 doc/tree.1 $pkg/share/man/man1/tree.1

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
43ec8adf83dd5d42c3216c15b643fa3cb1905313817b4a7bc0b15682f1124f3707ef5e004fb1e344307c8a58e17785f9b0e2066f7cc880701f849bc885ab40f1  tree-1.6.0.tar.lz
"
