summaryrefslogtreecommitdiffstats
path: root/main/ntfs-3g/APKBUILD
blob: 2a6eb947783ea47ae7983a3ceaeb2499a955f7ba (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ntfs-3g
pkgver=2014.2.15
pkgrel=0
pkgdesc="A userspace ntfs driver with write support"
url="http://www.tuxera.com/community/ntfs-3g-download/"
arch="all"
license="GPL"
depends=
makedepends="attr-dev util-linux-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://tuxera.com/opensource/ntfs-3g_ntfsprogs-$pkgver.tgz
	musl-fixes.patch
	"

_builddir="$srcdir"/ntfs-3g_ntfsprogs-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" LDCONFIG=: install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="f11d563816249d730a00498983485f3a  ntfs-3g_ntfsprogs-2014.2.15.tgz
cdfca9f0d20ef96ec60e072ffe4fd061  musl-fixes.patch"
sha256sums="4c3099400cb14b231a3c9d718b3a8d152d38555059341ce5fc6d02292a4a5b56  ntfs-3g_ntfsprogs-2014.2.15.tgz
f60f15b5650ada189d880ffea0e199869b3d5e855913d353cab8b0b7ebc47ae4  musl-fixes.patch"
sha512sums="7e4a5c9ac9d43dcf0d4b4085dea6703126fc4808cb9e1b7038884b20df2a8ab8f54c269d7204a279b62c5ba1127a966fd64226a8ed8f0c11667d9326c2f8fa7c  ntfs-3g_ntfsprogs-2014.2.15.tgz
5b4680956f11c75ee3122923f36b840e2a0a38e6cebecbe7be4a02f4423746f8b7d7a89b16d7a9bea62e64534d20e87503beb582273af38d458b946387e85a02  musl-fixes.patch"