| 1 | # Contributor: Valery Kartel <[email protected]> |
| 2 | # Maintainer: Natanael Copa <[email protected]> |
| 3 | pkgname=fuse-exfat |
| 4 | pkgver=1.4.0 |
| 5 | pkgrel=2 |
| 6 | pkgdesc="Free exFAT file system implementation" |
| 7 | url="https://github.com/relan/exfat" |
| 8 | arch="all" |
| 9 | license="GPL-2.0-or-later" |
| 10 | options="!check" # No test suite |
| 11 | provides="exfat" |
| 12 | provider_priority=20 |
| 13 | makedepends="autoconf automake fuse3-dev" |
| 14 | subpackages="$pkgname-doc $pkgname-utils" |
| 15 | source="$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 | " |
| 18 | builddir="$srcdir/exfat-$pkgver" |
| 19 | |
| 20 | prepare() { |
| 21 | default_prepare |
| 22 | autoreconf -fvi |
| 23 | } |
| 24 | |
| 25 | build() { |
| 26 | ./configure \ |
| 27 | --build=$CBUILD \ |
| 28 | --host=$CHOST \ |
| 29 | --prefix=/usr \ |
| 30 | --sbindir=/usr/sbin |
| 31 | make |
| 32 | } |
| 33 | |
| 34 | package() { |
| 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 | |
| 44 | utils() { |
| 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 | |
| 57 | sha512sums=" |
| 58 | 70a951c878e3eb9173c8bc24908da1a64e4e83990b4ae3bb53a9f20e9d618f30ef7e93e818f0387fe9a76a87c8ba970aa2d8728c386865fe658d76c1bee830ae fuse-exfat-1.4.0.tar.gz |
| 59 | 1c3d61310f6a2f7b126d57825f7eee7acde46f809bb2f1eb9857b35c831b9499a4d63c39a76c4d67f85e8541565e6dafb7321fbe0cbe4af6d4fa6eb9f1c00dd1 0001-allow-command-line-argument-order-used-by-mount-8.patch |
| 60 | " |