archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mtools / repos / extra-x86_64 / PKGBUILD
blobf048f1684d5bd376f62e34797c2bdb3b9641a5fc
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=mtools
6 pkgver=4.0.43
7 pkgrel=1
8 epoch=1
9 pkgdesc="A collection of utilities to access MS-DOS disks"
10 arch=(x86_64)
11 url="https://www.gnu.org/software/mtools/"
12 license=(GPL3)
13 depends=(
14   bash
15   glibc
17 makedepends=(
18   libx11
19   texinfo
21 optdepends=(
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'
28             'SKIP')
29 b2sums=('d000839bbb6bc647eb5a32b08b40b1350cd0a85fd564f0705ecbfe20f8f4ef21bf2d59cd0ccd7a159c829c019c6c2f3cbdef82ff3f4a9e8828cc13d44ddabd1d'
30         'SKIP')
31 validpgpkeys=('51A23D9D7C4DF41AA48FA893E99CF5537790B839') # Alain KNAFF <alain@knaff.lu>
33 prepare() {
34   # comment entry in default config
35   sed -e '/^SAMPLE FILE$/s:^:# :' -i $pkgname-$pkgver/mtools.conf
38 build() {
39   local configure_options=(
40     --prefix=/usr
41     --mandir=/usr/share/man
42     --infodir=/usr/share/info
43     --sysconfdir=/etc
44   )
46   cd $pkgname-$pkgver
47   ./configure "${configure_options[@]}"
48   make
51 check() {
52   make -k check -C $pkgname-$pkgver
55 package() {
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"