# $Id: PKGBUILD 172190 2012-12-01 14:32:58Z dreisner $ # Maintainer: Tom Gundersen # Contributor: Ronald van Haren # Contributor: Thomas Bächler pkgbase=ntfs-3g_ntfsprogs pkgname=('ntfs-3g' 'ntfsprogs') pkgver=2012.1.15 pkgrel=4 url="http://www.tuxera.com" arch=('i686' 'x86_64' 'mips64el') license=('GPL2') depends=('glibc' 'fuse') makedepends=('pkgconfig') options=('!libtool') source=(http://tuxera.com/opensource/$pkgbase-$pkgver.tgz) sha1sums=('8d55cf49afde172fefa369a0a85289e09c4d7bbb') build() { cd "$srcdir/$pkgbase-$pkgver" ./configure --prefix=/usr \ --with-fuse=external --disable-static \ --enable-posix-acls --disable-ldconfig \ --mandir=/usr/share/man make } package_ntfs-3g() { pkgdesc="Stable read and write NTFS driver" for DIR in src libntfs-3g include; do cd "$srcdir/$pkgbase-$pkgver/$DIR" make DESTDIR="$pkgdir" install done mv "$pkgdir"/bin/* "$pkgdir"/usr/bin/ rm -rf "$pkgdir"/{s,}bin rmdir "$pkgdir/lib" cd "$pkgdir"/usr/bin ln -s ntfs-3g mount.ntfs ln -s ntfs-3g mount.ntfs-3g ln -s lowntfs-3g mount.lowntfs-3g } package_ntfsprogs() { pkgdesc="NTFS filesystem utilities" depends=('util-linux' 'ntfs-3g') cd "$srcdir/$pkgbase-$pkgver/ntfsprogs" make DESTDIR="$pkgdir" install mv "$pkgdir"/sbin/* "$pkgdir"/usr/bin/ rm -rf "$pkgdir"/sbin }