APKBUILD 1.2 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dosfstools
3
pkgver=4.1
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="DOS filesystem utilities"
6
url="https://github.com/dosfstools/dosfstools"
7
arch="all"
8 9
license="GPL3+"
depends=""
10
makedepends="linux-headers autoconf automake libtool"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-doc"
12
source="https://github.com/dosfstools/dosfstools/releases/download/v$pkgver/dosfstools-$pkgver.tar.xz
13
	"
Natanael Copa's avatar
Natanael Copa committed
14

15
_builddir="$srcdir"/$pkgname-$pkgver
16 17 18 19 20 21 22
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
23
	autoreconf -vif
24 25
}

26
build() {
27
	cd "$_builddir"
28 29 30 31 32 33 34 35 36 37
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls \
		|| return 1
	make || return 1
38 39 40
}

package() {
41
	cd "$_builddir"
42
	make DESTDIR="$pkgdir" install  || return 1
Natanael Copa's avatar
Natanael Copa committed
43
}
44

45 46 47
md5sums="07a1050db1a898e9a2e03b0c4569c4bd  dosfstools-4.1.tar.xz"
sha256sums="e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173  dosfstools-4.1.tar.xz"
sha512sums="e7a8aab34255d15e6865a7b031971352af1255134fab83389673bcc3cbd6ba255241bd2429070aeb4b927f8d7d73ccf1aeafe94566b133e88e7586897c317b78  dosfstools-4.1.tar.xz"