summaryrefslogtreecommitdiffstats
path: root/abs/core/mtools
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-16 22:15:41 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-16 22:15:41 (GMT)
commit035772adfabbbf76d1af1bacbdfafdf8933cc106 (patch)
tree6609aa316074a7afeddffa89a50c63d52763abbe /abs/core/mtools
parentb215d21a2f4e4a5764492b3f61282b61b15c5776 (diff)
downloadlinhes_pkgbuild-035772adfabbbf76d1af1bacbdfafdf8933cc106.zip
linhes_pkgbuild-035772adfabbbf76d1af1bacbdfafdf8933cc106.tar.gz
linhes_pkgbuild-035772adfabbbf76d1af1bacbdfafdf8933cc106.tar.bz2
mtools: up to latest
Diffstat (limited to 'abs/core/mtools')
-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
+}