aboutsummaryrefslogtreecommitdiffstats
path: root/community/exfat-utils/APKBUILD
blob: f4829f1399459be74d3abcfbe5a84792130c217d (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.2.8
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="98acebf74fe5f5181098cdd880303d6c78d5aa88aa7a87d5371c887e4614536b19a24d48526b235de034fad26b68ddaf4f286b68b5963e95cc1cf7cee1c7b58c  exfat-utils-1.2.8.tar.gz"