# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=hfsfuse
pkgver=0.289
pkgrel=0
pkgdesc="FUSE driver for HFS+ filesystems"
url="https://github.com/0x09/hfsfuse"
arch="all"
license="MIT BSD-2-Clause"
makedepends="
	fuse-dev
	linux-headers
	utf8proc-dev
	zlib-dev
	"
source="https://github.com/0x09/hfsfuse/releases/download/$pkgver/hfsfuse-$pkgver.tar.gz"
options="!check"  # no tests provided

prepare() {
	default_prepare

	rm -rf lib/utf8proc
}

build() {
	make WITH_UBILIO=local WITH_UTF8PROC=system
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make install PREFIX="$pkgdir/usr" WITH_UBILIO=local WITH_UTF8PROC=system
}

sha512sums="
28ac419808d7e2025172d4e7823fad16458c6b4ff927f032898c0a308fde30ba2ea82802f07997cc8c807a19bdc1026779b2001e6900e51661aad03448f45cf8  hfsfuse-0.289.tar.gz
"
