diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-17 20:50:17 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:49 +0000 |
commit | fd006e53f1a9a86c93de09782ce28262d6cb313c (patch) | |
tree | bd9bfac005289ffa6be3c4d13548f848672c5952 | |
parent | 26fcb98d3493e2f881998bfdacd76efff0479003 (diff) | |
download | aports-fd006e53f1a9a86c93de09782ce28262d6cb313c.tar.bz2 aports-fd006e53f1a9a86c93de09782ce28262d6cb313c.tar.xz |
main/mtools: add test suite, modernise
-rw-r--r-- | main/mtools/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/main/mtools/APKBUILD b/main/mtools/APKBUILD index d31bc6397f..4bf1ed2715 100644 --- a/main/mtools/APKBUILD +++ b/main/mtools/APKBUILD @@ -1,7 +1,7 @@ # 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" } |