aboutsummaryrefslogtreecommitdiffstats
path: root/main/ntfs-3g/APKBUILD
blob: 51ce04e2ceb5dc2b8cdf8700e3b7551a48e596a1 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ntfs-3g
pkgver=2015.3.14
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 linux-headers"
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"
	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"
	mkdir -p "$pkgdir"/lib
	make -j1 DESTDIR="$pkgdir" LDCONFIG=: install || return 1
}

md5sums="8cd57768310e3b2be39b3191d808e241  ntfs-3g_ntfsprogs-2015.3.14.tgz
cdfca9f0d20ef96ec60e072ffe4fd061  musl-fixes.patch"
sha256sums="97f996015d8316d4a272bd2629978e5e97072dd3cc148ce39802f8037c6538f2  ntfs-3g_ntfsprogs-2015.3.14.tgz
f60f15b5650ada189d880ffea0e199869b3d5e855913d353cab8b0b7ebc47ae4  musl-fixes.patch"
sha512sums="9744dee814e89a97050bc8beb76f1a7d8a585e7d7740e8041e393c6912c93e49803f9b41af84e8315b3162e58b19ca8d155d435395cb07ecaa7de9caaf2af441  ntfs-3g_ntfsprogs-2015.3.14.tgz
5b4680956f11c75ee3122923f36b840e2a0a38e6cebecbe7be4a02f4423746f8b7d7a89b16d7a9bea62e64534d20e87503beb582273af38d458b946387e85a02  musl-fixes.patch"