archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mtools / trunk / PKGBUILD
blob0a8b3bf4fb0e24b83c2d2905dcbd6c995f1182a2
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.40
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=(bash glibc)
14 makedepends=(libx11 texinfo)
15 optdepends=(
16   'libx11: required by floppyd'
17   'libxau: required by floppyd'
19 backup=(etc/$pkgname.conf)
20 options=(debug)
21 source=(https://ftp.gnu.org/gnu/mtools/$pkgname-$pkgver.tar.bz2{,.sig})
22 sha512sums=('c3acf8723ae207d9eccdca3c2b55aed262175328417031397c14c7120a1e02f0c52c7fefc0145dfb09fb91f1d3e63254e7a45bc7edf50b1ecc87b7cc95d2f390'
23             'SKIP')
24 b2sums=('6ae2dbd2129d48528f6a36f81f44979b2dd977729e3f3f0ab5ff4aa8d29b0841cd770e2ed12f0f772676f6bcfeb3949d4fb79e240cf1d88524bbaa6cdfb4d26e'
25         'SKIP')
26 validpgpkeys=('51A23D9D7C4DF41AA48FA893E99CF5537790B839') # Alain KNAFF <alain@knaff.lu>
28 prepare() {
29   # comment entry in default config
30   sed -e '/^SAMPLE FILE$/s:^:# :' -i $pkgname-$pkgver/mtools.conf
33 build() {
34   cd $pkgname-$pkgver
35   ./configure \
36     --prefix=/usr \
37     --mandir=/usr/share/man \
38     --infodir=/usr/share/info \
39     --sysconfdir=/etc
40   make
43 check() {
44   make -k check -C $pkgname-$pkgver
47 package() {
48   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
49   install -vDm 644 $pkgname-$pkgver/mtools.conf -t "$pkgdir/etc/"
50   install -vDm 644 $pkgname-$pkgver/{README,NEWS} -t "$pkgdir/usr/share/doc/$pkgname"