# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=exfatprogs
pkgver=1.2.6
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="
15588bb9d11ec47db002c28bfde06970b85f9b5db1e93ef2273332cc53d34beffcc3fb66c2e2f46bd0ad19ee500f774beb0202e7d299a6eaee03de1a12affa59  exfatprogs-1.2.6.tar.gz
"
