aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fuse-exfat/APKBUILD
blob: b2a37a4eefbc57665a0537ccd1cade46e69c2481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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=""
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"