pkgname=m4 pkgver=1.4.19 pkgrel=2 pkgdesc="m4 macro processor" arch=('x86_64') license=('GPL3') url="https://www.gnu.org/software/m4" groups=('base-devel') depends=('glibc' 'bash') source=("https://ftp.gnu.org/gnu/m4/${pkgname}-${pkgver}.tar.xz" "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-devel/m4/files/m4-1.4.19-make-4.4-tests.patch") md5sums=('0d90823e1426f1da2fd872df0311298d' '6923f940a7c18226abfbd8401af4eb88') build() { cd ${pkgname}-${pkgver} patch -p1 -i ${srcdir}/m4-1.4.19-make-4.4-tests.patch ./configure --prefix=/usr make } check() { cd ${pkgname}-${pkgver} make check } package() { cd ${pkgname}-${pkgver} make prefix=${pkgdir}/usr install }