summaryrefslogtreecommitdiff
path: root/extra/mtools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mtools/PKGBUILD')
-rw-r--r--extra/mtools/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/mtools/PKGBUILD b/extra/mtools/PKGBUILD
new file mode 100644
index 000000000..9f90d79a2
--- /dev/null
+++ b/extra/mtools/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 120053 2011-04-18 22:34:00Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=mtools
+pkgver=4.0.16
+pkgrel=1
+pkgdesc="A collection of utilities to access MS-DOS disks"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.gnu.org/software/mtools/"
+license=('GPL')
+depends=('sh')
+makedepends=('texinfo' 'libx11' 'libsm')
+optdepends=('libx11: required by floppyd'
+ 'libsm: required by floppyd')
+backup=('etc/mtools.conf')
+install=mtools.install
+source=("http://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('e9b07f35272210f407012abaf5d1b9b5')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make -j 1 DESTDIR="${pkgdir}" install || return 1
+ install -Dm644 mtools.conf "${pkgdir}/etc/mtools.conf" || return 1
+}