# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=quota-tools
pkgver=4.09
pkgrel=1
pkgdesc="linux disk quota system tools"
url="https://sourceforge.net/projects/linuxquota/"
arch="all"
license="GPL-2.0-or-later"
makedepends="e2fsprogs-dev libnl3-dev libtirpc-dev
	linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/linuxquota/quota-$pkgver.tar.gz
	fix-implicit-basename.patch"

builddir="$srcdir/"quota-$pkgver

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-libwrap \
		--disable-rpc \
		--disable-nls \
		--disable-ldapmail

	make
}

check() {
	make check
}

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

sha512sums="
003d45f33543d4c87446e6547079cdae293b8dade01c58cf3626623721a1400ee07681395ad656c23a9ea2a62ab27c6ad24ad55600890e6e25334aba27ab1ad5  quota-4.09.tar.gz
79f935c264f658af4a7ffc27ccaa0be8d323f252a73a32cd978c4b4bef881137310729a62db0f3674fd45e95a0ab84dbbd60dbc7bc655693aacc33e6721c0bf8  fix-implicit-basename.patch
"
