# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=patchutils
pkgver=0.4.2
pkgrel=3
pkgdesc="A collection of programs for manipulating patch files"
options="!check" # 6 tests fail
url="http://cyberelk.net/tim/patchutils/"
arch="all"
license="GPL-2.0-or-later"
depends="perl"
makedepends="xmlto"
subpackages="$pkgname-doc"
source="http://cyberelk.net/tim/data/patchutils/stable/patchutils-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

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

sha512sums="20970d52fd43c09dc7799297b9a9eb6f60ba29ecc750d49381a2dc52273dfe484a47696cddd541f623394fa3486734cf337297cbeab6b1b244511c7740f46897  patchutils-0.4.2.tar.xz"
