archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ntfs-3g / trunk / PKGBUILD
blob6e15dc44a3e232bfd038c78d92ef1b4287bb0680
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Tom Gundersen <teg@jklm.no>
3 # Contributor: Ronald van Haren <ronald.archlinux.org>
4 # Contributor: Thomas Bächler <thomas.archlinux.org>
6 pkgname=ntfs-3g
7 _pkgname=ntfs-3g_ntfsprogs
8 pkgver=2022.5.17
9 pkgrel=1
10 pkgdesc='NTFS filesystem driver and utilities'
11 url='https://www.tuxera.com/community/open-source-ntfs-3g/'
12 arch=('x86_64')
13 license=('GPL2')
14 depends=('util-linux' 'fuse2')
15 source=("https://tuxera.com/opensource/${_pkgname}-${pkgver}.tgz")
16 sha256sums=('0489fbb6972581e1b417ab578d543f6ae522e7fa648c3c9b49c789510fd5eb93')
18 conflicts=('ntfsprogs')
19 provides=('ntfsprogs')
20 replaces=('ntfsprogs')
22 prepare() {
23   cd ${_pkgname}-${pkgver}
24   sed 's|$(DESTDIR)/sbin|$(DESTDIR)/usr/bin|' -i {ntfsprogs,src}/Makefile.in
27 build() {
28   cd ${_pkgname}-${pkgver}
29   ./configure \
30     --prefix=/usr \
31     --sbin=/usr/bin \
32     --mandir=/usr/share/man \
33     --disable-ldconfig \
34     --disable-static \
35     --with-fuse=external \
36     --enable-xattr-mappings \
37     --enable-posix-acls \
38     --enable-extras \
39     --enable-crypto \
41   make
44 package_ntfs-3g() {
45   cd ${_pkgname}-${pkgver}
46   make DESTDIR="${pkgdir}" rootbindir=/usr/bin rootsbindir=/usr/bin rootlibdir=/usr/lib install
47   rm "${pkgdir}"/usr/share/man/man8/ntfsfallocate.8 # uninstalled binary
48   ln -s /usr/bin/ntfs-3g "${pkgdir}/usr/bin/mount.ntfs"