summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/mtools/PKGBUILD42
-rw-r--r--abs/core/mtools/mtools.install18
2 files changed, 46 insertions, 14 deletions
diff --git a/abs/core/mtools/PKGBUILD b/abs/core/mtools/PKGBUILD
index b9854ef..bba5d1d 100644
--- a/abs/core/mtools/PKGBUILD
+++ b/abs/core/mtools/PKGBUILD
@@ -1,23 +1,37 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Kevin Piche <kevin@archlinux.org>
+# $Id: PKGBUILD 95239 2010-10-17 16:13:26Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=mtools
-pkgver=3.9.11
+pkgver=4.0.14
pkgrel=1
-pkgdesc="A collection of utilities to access MS-DOS disks from Unix without mounting them"
-url="http://mtools.linux.lu/"
-source=(http://mtools.linux.lu/$pkgname-$pkgver.tar.gz)
-arch=(i686 x86_64)
+pkgdesc="A collection of utilities to access MS-DOS disks"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/mtools/"
license=('GPL')
-depends=('glibc')
-makedepends=('texinfo')
-md5sums=('3c0ae05b0d98a5d3bd06d3d72fcaf80d')
-options=('makeflags')
+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=('2682a2db57b0144fa2ad6f8794320fb8')
build() {
- cd $startdir/src/$pkgname-$pkgver
- ./configure --prefix=/usr --infodir=/usr/share/mtools --sysconfdir=/etc
+ 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
- make prefix=$startdir/pkg/usr infodir=$startdir/pkg/usr/share/mtools install
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make -j 1 DESTDIR="${pkgdir}" install || return 1
+ install -Dm644 mtools.conf "${pkgdir}/etc/mtools.conf" || return 1
}
diff --git a/abs/core/mtools/mtools.install b/abs/core/mtools/mtools.install
new file mode 100644
index 0000000..ae35772
--- /dev/null
+++ b/abs/core/mtools/mtools.install
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(mtools.info)
+
+post_install() {
+ for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}