Commit fd006e53 authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs

main/mtools: add test suite, modernise

parent 26fcb98d
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mtools
pkgver=4.0.18
pkgrel=1
pkgrel=2
pkgdesc="A collection of utilities to access MS-DOS disks from Unix without mounting them"
url="http://www.gnu.org/software/mtools/"
arch="all"
......@@ -11,28 +11,33 @@ makedepends="texinfo"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2"
subpackages="$pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
cd "$builddir"
default_prepare
update_config_sub
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc \
--without-x \
|| return 1
make || return 1
--sysconfdir=/etc/mtools \
--without-x
make
}
check() {
cd "$builddir"
make check
}
package() {
cd $srcdir/$pkgname-$pkgver
cd "$builddir"
make -j1 install DESTDIR="$pkgdir"
}
......
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