# $Id$
# Modified from PKGBUILD for ntfs-3g by Thomas Bächler <thomas.archlinux.org>
# Maintainer: Jorge Pizarro Callejas <jpizarro@inf.utfsm.cl>
pkgname=ntfs-3g-ar
pkgver=2009.11.14AC.2
pkgrel=1
pkgdesc="NTFS-3G Advanced Release. With support for file ownership and permissions, Windows to Linux user mapping, Windows symlinks, and more."
url="http://pagesperso-orange.fr/b.andre/advanced-ntfs-3g.html"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('fuse>=2.8.0')
options=('!libtool')
source=(http://pagesperso-orange.fr/b.andre/ntfs-3g-2009.11.14AC.2.tgz http://pastebin.ca/raw/1730596)
md5sums=('d966a35039f3a64b8065433ba33c6d1a' '726d5a4beebd43ddb6974d4756bfd71b')
provides=('ntfs-3g=2009.11.14')
conflicts=('ntfs-3g')
build() {
cd $srcdir/ntfs-3g-$pkgver
ac_cv_path_LDCONFIG=/bin/true ./configure --prefix=/usr \
--with-fuse=external \
--enable-posix-acls || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
# Install usr/share/hal/fdi/policy/10osvendor/25-ntfs-config-write-policy.fdi
# which has been stored on pastebin.ca
install -d $pkgdir/usr/share/hal/fdi/policy/10osvendor
cat $srcdir/1730596 > $pkgdir/usr/share/hal/fdi/policy/10osvendor/25-ntfs-config-write-policy.fdi
chmod 644 $pkgdir/usr/share/hal/fdi/policy/10osvendor/25-ntfs-config-write-policy.fdi
}