summaryrefslogtreecommitdiff
path: root/extra/ntfs-3g_ntfsprogs/PKGBUILD
blob: f31eea6afe8d55b3a5b175aec8654ae817fa85d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $Id: PKGBUILD 176861 2013-02-01 21:35:19Z eric $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: Thomas Bächler <thomas.archlinux.org>

pkgbase=ntfs-3g_ntfsprogs
pkgname=('ntfs-3g' 'ntfsprogs')
pkgver=2013.1.13
pkgrel=1
url="http://www.tuxera.com/community/ntfs-3g-download/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
depends=('glibc' 'fuse')
options=('!libtool')
source=(http://tuxera.com/opensource/$pkgbase-$pkgver.tgz)
sha1sums=('8c12b7644d90ae9fb8d0aca0d7ebd5f8fac2c818')

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
}