# Maintainer: Natanael Copa pkgname=fuse-exfat pkgver=1.2.2 pkgrel=0 pkgdesc="Free exFAT file system implementation" url="https://github.com/relan/exfat" arch="all" license="GPL2+" depends="fuse" depends_dev="" makedepends="$depends_dev fuse-dev" install="" subpackages="$pkgname-doc" source="https://github.com/relan/exfat/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz" _builddir="$srcdir"/fuse-exfat-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr --sbindir=/usr/bin || return 1 make CCFLAGS="${CFLAGS} -std=c99" LINKFLAGS="${LDFLAGS}" } package() { cd "$_builddir" make DESTDIR="${pkgdir}" install || return 1 # Install man page install -Dm444 fuse/mount.exfat-fuse.8 \ "${pkgdir}/usr/share/man/man8/mount.exfat-fuse.8" \ || return 1 } md5sums="f6f365024ab654ecc9a356502d700c9d fuse-exfat-1.2.2.tar.gz" sha256sums="c93b4d10bd548db205b7c491c43cabf510e4817716460322f5f645739c54cdca fuse-exfat-1.2.2.tar.gz" sha512sums="26f73017a36b072d2c7905358cb2236cdfbd55ddb94c554a0bfd8520ffc6c0366f3c40497d18eefb2a27a55c3531f7d6fabec1882802ad6961603ada89229c4a fuse-exfat-1.2.2.tar.gz"