summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28e1f8915d0756e0930b8fa5631ec159d221e6f1 (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: rtfreedman  <rob<d_t>til<d_t>freedman<a@T>g*a*l<d_t>com>

pkgname=exfat-utils-nofuse
pkgver=1.4.0
pkgrel=2
pkgdesc='Utilities for the exFAT file system without fuse (to prefer exfat kernel module over fuse)'
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm' 'aarch64')
url='https://github.com/relan/exfat'
license=('GPL2')
depends=('glibc')
provides=('exfat-utils')
conflicts=('fuse-exfat' 'exfat-utils')
source=("exfat-${pkgver}.tar.gz::https://github.com/relan/exfat/archive/v${pkgver}.tar.gz"
        nofuse.patch)
b2sums=('a402a5cb1cc6357c7d8bdc3c0f52cd76ee5f0d01ae8f3c1ecbb3f1cfd149b1eb80099e021c27c4e6f1c306901e79b0e7543186f359db07ccd0f85f847ad6cd34'
        '60d6cbd6fef8f9e117b44aa2416131b788378b04a9ab8f88ff23836779df92b460daab01bae646155bc58ac9f8b7071bb06717dfd7e3a06705587792e492000b')

prepare() {
  cd exfat-${pkgver}
  # build without fuse support
  patch -p1 < "${srcdir}"/nofuse.patch
  autoreconf -fiv
}

build() {
  cd exfat-${pkgver}
  ./configure --prefix=/usr --sbindir=/usr/bin
  make CCFLAGS="${CFLAGS} ${CPPFLAGS} -std=c99" LINKFLAGS="${LDFLAGS}"
}

package() {
  cd exfat-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 */*.8 -t "${pkgdir}"/usr/share/man/man8
}