APKBUILD 889 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mtools
3 4
pkgver=4.0.23
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="A collection of utilities to access MS-DOS disks from Unix without mounting them"
6
url="https://www.gnu.org/software/mtools/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="GPL"
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="texinfo"
Natanael Copa's avatar
Natanael Copa committed
11
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
12
subpackages="$pkgname-doc"
13
builddir="$srcdir/$pkgname-$pkgver"
14 15

build() {
16
	cd "$builddir"
17 18 19 20
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
21 22
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
23 24 25 26 27 28 29 30
		--sysconfdir=/etc/mtools \
		--without-x
	make
}

check() {
	cd "$builddir"
	make check
Natanael Copa's avatar
Natanael Copa committed
31 32 33
}

package() {
34
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
35 36 37
	make -j1 install DESTDIR="$pkgdir"
}

38
sha512sums="c8c48adedc3f3e4eeafead27ce80172c9cb9690b575618842001ed16aa0011dcd2bc517882ea4bf01a73810ba151aa4b86f8ce2f97d6e8a0177d09be71a6d1ed  mtools-4.0.23.tar.bz2"