# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gccmakedep
pkgver=1.0.4
pkgrel=0
pkgdesc="Create dependencies in makefiles using 'gcc -M'"
url="https://gitlab.freedesktop.org/xorg/util/gccmakedep"
arch="all"
license="MIT"
makedepends="automake autoconf libtool util-macros"
subpackages="$pkgname-doc"
source="https://gitlab.freedesktop.org/xorg/util/gccmakedep/-/archive/$pkgname-$pkgver/$pkgname-$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	default_prepare
	sh ./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
0a7307a664aa261ffd4bc2ac30bcecc0b34f6b7717191699796314f35da2016bd51f7b10bfa11df088cee5fa033cfe8d060b4252ca67fea2888125c35543ad4c  gccmakedep-gccmakedep-1.0.4.tar.gz
"
