# Maintainer: Natanael Copa pkgname=dosfstools pkgver=3.0.28 pkgrel=0 pkgdesc="DOS filesystem utilities" url="https://github.com/dosfstools/dosfstools" arch="all" license="GPL3+" depends="" makedepends="linux-headers" subpackages="$pkgname-doc" source="https://github.com/dosfstools/dosfstools/releases/download/v$pkgver/dosfstools-$pkgver.tar.xz musl-fixes.patch " _builddir="$srcdir"/$pkgname-$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" make OPTFLAGS="$CFLAGS -D_GNU_SOURCE" || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" \ PREFIX=/usr \ MANDIR=/usr/share/man \ DOCDIR=/usr/share/doc \ install || return 1 } 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"