pkgname=dejagnu pkgver=1.6.3 pkgrel=1 pkgdesc="Framework for testing other programs" arch=('x86_64') url="https://www.gnu.org/software/dejagnu" license=('GPL-3.0-or-later') depends=('expect' 'bash') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) sha256sums=(87daefacd7958b4a69f88c6856dbd1634261963c414079d0c371f589cd66a2e3) prepare() { cd ${pkgname}-${pkgver} mkdir build } build() { cd ${pkgname}-${pkgver}/build local configure_args=( ${configure_options} ) ../configure ${configure_args[@]} makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi } package() { cd ${pkgname}-${pkgver}/build make DESTDIR=${pkgdir} install install -v -dm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} install -v -m644 doc/dejagnu.{html,txt} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }