aboutsummaryrefslogtreecommitdiffstats
path: root/community/exfat-utils/APKBUILD
blob: fea3a81c1883c511311e300c043f3af573896e7c (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
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=exfat-utils
pkgver=1.3.0
pkgrel=0
pkgdesc="Utilities for exFAT file system"
url="https://github.com/relan/exfat"
arch="all"
license="GPL-2.0+"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://github.com/relan/exfat/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"

build() {
	cd "$builddir"

	./configure \
		--prefix=/usr \
		--sbindir=/usr/bin
	make CCFLAGS="${CFLAGS} -std=c99" LINKFLAGS="${LDFLAGS}"
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	# Install man pages
	install -Dm444 dump/dumpexfat.8 "${pkgdir}/usr/share/man/man8/dumpexfat.8"
	install -m444 fsck/exfatfsck.8 "${pkgdir}/usr/share/man/man8"
	install -m444 mkfs/mkexfatfs.8 "${pkgdir}/usr/share/man/man8"
	install -m444 label/exfatlabel.8 "${pkgdir}/usr/share/man/man8"
}

sha512sums="e1c5b708f22e878d7521e3299866bba127145757e3620696ff11b18c8c7d4830522974e8ee4771234b70aa9718295d3433779cf34ca990e28ccc06cbf9325f7e  exfat-utils-1.3.0.tar.gz"