# Maintainer: Natanael Copa pkgname=mtools pkgver=4.0.43 pkgrel=1 pkgdesc="collection of utilities to access MS-DOS disks from Unix without mounting them" url="https://www.gnu.org/software/mtools/" arch="all" license="GPL-3.0-or-later" makedepends="texinfo linux-headers" source="https://ftp.gnu.org/gnu/mtools/mtools-$pkgver.tar.bz2 fix-uninitialized.patch" subpackages="$pkgname-dbg $pkgname-doc" build() { # todo: configure scripts are broken export CFLAGS="$CFLAGS -DOS_linux" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc/mtools \ --without-x make } check() { make check } package() { make -j1 install DESTDIR="$pkgdir" } sha512sums=" b70e483688124a653dd333ab127494dab12d413809680a4846dc4ae5c166a0b9938a2ab290e518c1f1a5b18ed96d2c2a29d92d61b16b772a4ab5e495379fe410 mtools-4.0.43.tar.bz2 3c41e2f84d7c2b15b119708453b30b6a056a443dbbf24198f2bdc82c99e6463974f7bb0bb13569fd1f929212506d43deed1ed77502c434a89b2da885baeab597 fix-uninitialized.patch "