projects/aports·blob master · refs

60 lines · 1.7 KiB

1# Contributor: Valery Kartel <[email protected]>
2# Maintainer: Natanael Copa <[email protected]>
3pkgname=fuse-exfat
4pkgver=1.4.0
5pkgrel=2
6pkgdesc="Free exFAT file system implementation"
7url="https://github.com/relan/exfat"
8arch="all"
9license="GPL-2.0-or-later"
10options="!check" # No test suite
11provides="exfat"
12provider_priority=20
13makedepends="autoconf automake fuse3-dev"
14subpackages="$pkgname-doc $pkgname-utils"
15source="$pkgname-$pkgver.tar.gz::https://github.com/relan/exfat/archive/v$pkgver.tar.gz
16 0001-allow-command-line-argument-order-used-by-mount-8.patch
17 "
18builddir="$srcdir/exfat-$pkgver"
19
20prepare() {
21 default_prepare
22 autoreconf -fvi
23}
24
25build() {
26 ./configure \
27 --build=$CBUILD \
28 --host=$CHOST \
29 --prefix=/usr \
30 --sbindir=/usr/sbin
31 make
32}
33
34package() {
35 make DESTDIR="$pkgdir" install
36
37 # resove conflict with community/exfatprogs.
38 # while -utils provides the same binaries there is no need for
39 # the two packages two conflict if -utils is not installed.
40 mv "$pkgdir"/usr/share/man/man8/exfatlabel.8 \
41 "$pkgdir"/usr/share/man/man8/exfatlabel.exfat-fuse.8
42}
43
44utils() {
45 pkgdesc="$pkgdesc (utilities)"
46 # other provider is exfatprogs
47 provides="exfat-utils"
48 provider_priority=1
49 replaces="exfatprogs"
50
51 cd "$pkgdir"
52 local file; for file in $(find usr/sbin ! -name "mount*" -a ! -type d); do
53 amove $file
54 done
55}
56
57sha512sums="
5870a951c878e3eb9173c8bc24908da1a64e4e83990b4ae3bb53a9f20e9d618f30ef7e93e818f0387fe9a76a87c8ba970aa2d8728c386865fe658d76c1bee830ae fuse-exfat-1.4.0.tar.gz
591c3d61310f6a2f7b126d57825f7eee7acde46f809bb2f1eb9857b35c831b9499a4d63c39a76c4d67f85e8541565e6dafb7321fbe0cbe4af6d4fa6eb9f1c00dd1 0001-allow-command-line-argument-order-used-by-mount-8.patch
60"