aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fuse-exfat/APKBUILD
blob: 25cc549835037998a7f4e22e23cda3d63fc128af (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fuse-exfat
_pkgreal=exfat
pkgver=1.2.6
pkgrel=0
pkgdesc="Free exFAT file system implementation"
url="https://github.com/relan/exfat"
arch="all"
license="GPL2+"
provides="$_pkgreal"
depends="fuse"
makedepends="autoconf automake fuse-dev"
subpackages="$pkgname-doc $pkgname-utils"
source="$_pkgreal-$pkgver.tar.gz::https://github.com/relan/$_pkgreal/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	autoreconf --install || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

utils() {
	pkgdesc="$pkgdesc (utilities)"
	provides="$_pkgreal-utils"
	mkdir -p "$subpkgdir"/usr/sbin
	local file; for file in $(find "$pkgdir"/usr/sbin ! -name "mount*" -a ! -type d); do
		mv $file "$subpkgdir"/${file#$pkgdir}
	done
}

md5sums="f35e932d0aa9231916f91b9df2e2cf4a  exfat-1.2.6.tar.gz"
sha256sums="1afe3ab4141414c760cfb6e2dca2491b484d07dd0c79879e72b84ad0664038cd  exfat-1.2.6.tar.gz"
sha512sums="76f9ece1ea0d449c48ae71d367021ed7cee05b1619239954b725adbe68c33b76046a8620c64dbebdcc69f2ca32abd242e12f4d592a00cd7fdd2277ff6803fc96  exfat-1.2.6.tar.gz"