archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mtools / repos / extra-x86_64 / PKGBUILD
blob03aae32c31363a3b389a9ec70f94cdbe7a449aa9
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.36
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=('libx11: required by floppyd'
16             'libxau: required by floppyd')
17 backup=("etc/${pkgname}.conf")
18 source=("https://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2"{,.sig})
19 sha512sums=('2425ee0e39c06ea201a5303ab09a0aa9f0c59341522e2c15abc4f079320fd3d67d28afeb2870ee508d472bba6904c542e11c02b92652c8eda1bf338bab372d07'
20             'SKIP')
21 b2sums=('753ee3e412452572b36d15805982255f28bc277764ce66a0fe8483e19a3488fbb282b873a6be85e87e82a71bf7fda517e1234e1911f0b7c3f3992e25f8d18322'
22         'SKIP')
23 validpgpkeys=('51A23D9D7C4DF41AA48FA893E99CF5537790B839') # Alain KNAFF <alain@knaff.lu>
25 prepare() {
26   cd "${pkgname}-${pkgver}"
27   # comment entry in default config
28   sed -e '/^SAMPLE FILE$/s:^:# :' -i mtools.conf
31 build() {
32   cd "${pkgname}-${pkgver}"
33   ./configure --prefix=/usr \
34               --mandir=/usr/share/man \
35               --infodir=/usr/share/info \
36               --sysconfdir=/etc
37   make
40 package() {
41   cd "${pkgname}-${pkgver}"
42   make DESTDIR="${pkgdir}" install
43   install -vDm 644 mtools.conf -t "${pkgdir}/etc/"
44   install -vDm 644 {README,NEWS} -t "${pkgdir}/usr/share/doc/${pkgname}"