# Maintainer: PktSurf <smlinux@pktsurf.in>
app=automake
version=1.16.1
build=1sml
homepage="https://www.gnu.org/software/$app"
download="https://ftp.gnu.org/gnu/automake/automake-$version.tar.xz"
desc="GNU Makefile generator"
requires="autoconf perl"

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

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

build() {
  ./configure \
    --prefix=/usr \
    --bindir=/bin

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
cde49f49251a4110b6d6bf71a87c70a02761b937575825049953a5ccb6031e4ee9f4d7ec00b4713e0f1267ddb3265de659e268b09697c4fd401c606910e4605f  automake-1.16.1.tar.lz
"
