# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=make
pkgver=4.4.1
pkgrel=2.1
pkgdesc="GNU make utility to maintain groups of programs"
url="https://www.gnu.org/software/make"
license=('GPL3')
ncxfat_makedepends=(binutils glibc guile gcc)
ncxfab_makedepends=(base-devel make sh coreutils)
source=("https://ftp.gnu.org/gnu/make/make-${pkgver}.tar.lz"{,.sig})
sha256sums=('8814ba072182b605d156d7589c19a43b89fc58ea479b9355146160946f8cf6e9'
            'SKIP')
validpgpkeys=('6D4EEB02AD834703510B117680CB727A20C79BB2')   # Paul Smith

build() {
	cd "make-${pkgver}"
	./configure --prefix="$MPKG_USRPATH" --host="$MPKG_TARGETMACHINE"
	make
}

check() {
	cd "make-${pkgver}"
	make -k check
}

package() {
	ncxfat_depends=(glibc guile)
	cd "make-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
