summaryrefslogtreecommitdiff
path: root/repo/mtools/mtools.xibuild
blob: 0a684efdfb1eaeaecf5d4ff63434bbddaaf934b7 (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
#!/bin/sh

NAME="mtools"
DESC="collection of utilities to access MS-DOS disks from Unix without mounting them"

MAKEDEPS="texinfo linux-headers"

PKG_VER=4.0.41
SOURCE="https://ftp.gnu.org/gnu/mtools/mtools-$PKG_VER.tar.bz2"

ADDITIONAL="
fix-uninitialized.patch
"

prepare () {
    apply_patches
}

build() {
	# todo: configure scripts are broken
	export CFLAGS="$CFLAGS -DOS_linux"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--sysconfdir=/etc/mtools \
		--without-x
	make
}

check() {
	make check
}

package() {
	make -j1 install DESTDIR="$PKG_DEST"
}