1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="A collection of utilities to access MS-DOS disks"
11 url="https://www.gnu.org/software/mtools/"
22 'libx11: required by floppyd'
23 'libxau: required by floppyd'
25 backup=(etc/$pkgname.conf)
26 source=(https://ftp.gnu.org/gnu/mtools/$pkgname-$pkgver.tar.bz2{,.sig})
27 sha512sums=('b70e483688124a653dd333ab127494dab12d413809680a4846dc4ae5c166a0b9938a2ab290e518c1f1a5b18ed96d2c2a29d92d61b16b772a4ab5e495379fe410'
29 b2sums=('d000839bbb6bc647eb5a32b08b40b1350cd0a85fd564f0705ecbfe20f8f4ef21bf2d59cd0ccd7a159c829c019c6c2f3cbdef82ff3f4a9e8828cc13d44ddabd1d'
31 validpgpkeys=('51A23D9D7C4DF41AA48FA893E99CF5537790B839') # Alain KNAFF <alain@knaff.lu>
34 # comment entry in default config
35 sed -e '/^SAMPLE FILE$/s:^:# :' -i $pkgname-$pkgver/mtools.conf
39 local configure_options=(
41 --mandir=/usr/share/man
42 --infodir=/usr/share/info
47 ./configure "${configure_options[@]}"
52 make -k check -C $pkgname-$pkgver
56 make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
57 install -vDm 644 $pkgname-$pkgver/mtools.conf -t "$pkgdir/etc/"
58 install -vDm 644 $pkgname-$pkgver/{README,NEWS} -t "$pkgdir/usr/share/doc/$pkgname"