summaryrefslogtreecommitdiffstats
path: root/main/dosfstools/APKBUILD
blob: a940363db3f2553af54033f6fb664f990f8b7d72 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dosfstools
pkgver=3.0.23
pkgrel=0
pkgdesc="DOS filesystem utilities"
url="http://www.daniel-baumann.ch/software/dosfstools/"
arch="all"
license="GPL3+"
depends=""
makedepends="libiconv-dev"
subpackages="$pkgname-doc"
source="http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
build() { 
	cd "$_builddir"
	make OPTFLAGS="$CFLAGS" LDFLAGS="-liconv $LDFLAGS" || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" \
		PREFIX=/usr \
		MANDIR=/usr/share/man \
		DOCDIR=/usr/share/doc \
		install  || return 1
}

md5sums="bfdca786880a7f1cc9ce8ac68cb1fd51  dosfstools-3.0.23.tar.xz"
sha256sums="7ffd16266e41f7c4ff729de30d38d357f87e8c0ef0380042e8399a2bfa2a1d9b  dosfstools-3.0.23.tar.xz"
sha512sums="dd65ab982afc024751d207e4db18420f5742915f7edf95769be9800c30ca9e7154a6b32b284451670104675735fb2eb540e2a8808a76697a33ed5121ab35f286  dosfstools-3.0.23.tar.xz"