aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtools
diff options
context:
space:
mode:
Diffstat (limited to 'main/mtools')
-rw-r--r--main/mtools/APKBUILD25
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"
}