# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=exfatprogs
pkgver=1.2.9
pkgrel=0
pkgdesc="exfat filesystem userspace tools, mkfs and fsck"
url="https://github.com/exfatprogs/exfatprogs"
arch="all"
license="GPL-2.0-or-later"
# other provider is fuse-exfat-utils
provides="exfat-utils"
provider_priority=20
replaces="exfat-utils fuse-exfat-utils"
makedepends="autoconf libtool automake linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/exfatprogs/exfatprogs/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

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

check() {
	make check
}

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

sha512sums="
d22428a602ed18aa708ac0587afeafa23a36f10c4cda51415a6a9be3d851f0ccea5aa04f92ad4a1fc7962d160b3693e0da6e9d7f1dbc93518a1666b9fc6e23a7  exfatprogs-1.2.9.tar.gz
"
