pkgname=mtools pkgver=4.0.46 pkgrel=1 pkgdesc="A collection of utilities to access MS-DOS disks" arch=('x86_64') url="https://www.gnu.org/software/mtools/" license=('GPL-3.0-or-later') depends=('bash' 'glibc') makedepends=('texinfo') backup=(etc/mtools.conf) source=(https://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2) sha256sums=(9aad8dd859f88fb7787924ec47590192d3abf7bad6c840509c854290d6bc16c0) prepare() { cd ${pkgname}-${pkgver} sed -e '/^SAMPLE FILE$/s:^:# :' -i mtools.conf } build() { cd ${pkgname}-${pkgver} local configure_args=( --sysconfdir=/etc ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -vDm644 mtools.conf -t ${pkgdir}/etc/ }