APKBUILD 1.09 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dosfstools
3 4
pkgver=3.0.26
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="DOS filesystem utilities"
url="http://www.daniel-baumann.ch/software/dosfstools/"
7
arch="all"
8 9
license="GPL3+"
depends=""
10
makedepends="linux-headers"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-doc"
12 13
source="http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$pkgver.tar.xz
	"
Natanael Copa's avatar
Natanael Copa committed
14

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

25
build() {
26
	cd "$_builddir"
27
	make OPTFLAGS="$CFLAGS -D_GNU_SOURCE" || return 1
28 29 30
}

package() {
31
	cd "$_builddir"
32 33 34 35
	make DESTDIR="$pkgdir" \
		PREFIX=/usr \
		MANDIR=/usr/share/man \
		DOCDIR=/usr/share/doc \
36
		install  || return 1
Natanael Copa's avatar
Natanael Copa committed
37
}
38

39 40 41
md5sums="45012f5f56f2aae3afcd62120b9e5a08  dosfstools-3.0.26.tar.xz"
sha256sums="468442fe8cd93961047d5cd67f7b67793126575103a67cd131330512b4893e75  dosfstools-3.0.26.tar.xz"
sha512sums="52b04950268ed4750d5c4d61b613f0f0e9083e91301499b8bf82efd125c75ecaeb444fdd682fa11ec1ce525d32a70937f621430b9995ea920f14d7b35a07b4ca  dosfstools-3.0.26.tar.xz"