# Description: A recursive directory listing command that produces a depth indented listing of files
# URL: https://gitlab.com/OldManProgrammer/unix-tree
# Maintainer: Matt Housh, jaeger at crux dot ninja

name=tree
version=2.3.2
release=1
source=(https://gitlab.com/OldManProgrammer/unix-tree/-/archive/$version/unix-tree-$version.tar.gz)

build () {
  cd unix-tree-$version

  sed -i 's/^CFLAGS+=.*-O[0-9] \(.*\)/CFLAGS+=\1/' Makefile
  make

  install -D -m 0755 $name $PKG/usr/bin/$name
  install -D -m 0644 doc/$name.1 $PKG/usr/share/man/man1/$name.1
}
