aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtools/APKBUILD
blob: c26929e976140d40a9be8de52d7d125d5cce3f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mtools
pkgver=4.0.18
pkgrel=1
pkgdesc="A collection of utilities to access MS-DOS disks from Unix without mounting them"
url="http://www.gnu.org/software/mtools/"
arch="all"
license="GPL"
depends=
makedepends="texinfo"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2"
subpackages="$pkgname-doc"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	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
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make -j1 install DESTDIR="$pkgdir"
}

md5sums="a23646617546bf6ad56f061d8b283c85  mtools-4.0.18.tar.bz2"