pkgname=automake
pkgver=1.18.1
pkgdesc="A GNU tool for automatically creating Makefiles"
license=('GPL')
homepage="https://www.gnu.org/software/automake"
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("cea31dbf1120f890cbf2a3032cfb9a68")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}-${pkgver}
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
