Commit 998550b4 authored by Neophytos's avatar Neophytos

mtools: moved from platform to apps & 4.0.18

parent a61a123c
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgname=mtools
pkgver=4.0.18
pkgrel=1
pkgdesc="A collection of utilities to access MS-DOS disks"
arch=('x86_64')
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=('a23646617546bf6ad56f061d8b283c85')
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
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -j 1 DESTDIR="${pkgdir}" install
install -Dm644 mtools.conf "${pkgdir}/etc/mtools.conf"
}
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment