APKBUILD 1.39 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dosfstools
3
pkgver=3.0.28
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"
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
	musl-fixes.patch
14
	"
Natanael Copa's avatar
Natanael Copa committed
15

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

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

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

40 41 42 43 44 45
md5sums="6a047a6c65186b9ebb1853709adb36db  dosfstools-3.0.28.tar.xz
1212883d87460982d9a62ed0f9825589  musl-fixes.patch"
sha256sums="ee95913044ecf2719b63ea11212917649709a6e53209a72d622135aaa8517ee2  dosfstools-3.0.28.tar.xz
11dcbec3639e2f1977bf1fc9eb12ee25c07c494079903a9bdf62d1cc4b6bd281  musl-fixes.patch"
sha512sums="7325a9e05f51715b358cab0a8fa8f8096422b470f1a43eecfab2adbb954e1daf6a24003121be5b3a22de5fcb3e3adffbf1551e2158852b6663fd57a109f057ad  dosfstools-3.0.28.tar.xz
c1e4ccf8ce4ac828895f783f7c5feffacee8dc6197e62b6987498bbf016646fe88b01ca510b24eb45d63df1b6dab43247f8ed30191fccead408952c0dcb3434f  musl-fixes.patch"