# Maintainer: Rhys Koedijk # Maintainer: DarkMatterCore pkgbasename=ntfs-3g_ntfsprogs pkgname=switch-libntfs-3g pkgver=2022.10.3 pkgrel=1 pkgdesc='Read-Write NTFS Driver' baseurl='https://www.tuxera.com' url="${baseurl}/community/open-source-ntfs-3g/" license=('GPL') arch=('any') options=(!strip libtool staticlibs) makedepends=('devkitA64' 'dkp-toolchain-vars') groups=('switch-portlibs') source=( "${baseurl}/opensource/${pkgbasename}-${pkgver}.tgz" "${pkgname}-${pkgver}.patch" ) sha256sums=( 'f20e36ee68074b845e3629e6bced4706ad053804cbaf062fbae60738f854170c' '586cab5c8fc9b93078547c4b41625d99aea0e25fdeba1378385456c06be7391f' ) prepare() { cd "${pkgbasename}-${pkgver}" patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}.patch" source "${DEVKITPRO}/switchvars.sh" } build() { cd "${pkgbasename}-${pkgver}" aclocal automake ./configure --prefix="${PORTLIBS_PREFIX}" --libdir="${PORTLIBS_PREFIX}/lib" --host=aarch64-none-elf \ --disable-shared --enable-static --disable-device-default-io-ops \ --disable-ntfs-3g --disable-ntfsprogs --disable-plugins --disable-crypto \ --without-uuid --without-hd make } package() { cd "${pkgbasename}-${pkgver}" make DESTDIR="${pkgdir}" install install -Dm644 COPYING "${pkgdir}${PORTLIBS_PREFIX}/licenses/${pkgname}/LICENSE" install -Dm644 config.h "${pkgdir}${PORTLIBS_PREFIX}/include/ntfs-3g/config.h" }