archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ntfs-3g / repos / extra-x86_64 / PKGBUILD
bloba0acc39b59b420718964b3579ba80f3f441d0a58
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.10.3
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=('f20e36ee68074b845e3629e6bced4706ad053804cbaf062fbae60738f854170c')
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"