From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/mtools/mtools.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/mtools/mtools.xibuild (limited to 'repo/mtools/mtools.xibuild') diff --git a/repo/mtools/mtools.xibuild b/repo/mtools/mtools.xibuild new file mode 100644 index 0000000..0a684ef --- /dev/null +++ b/repo/mtools/mtools.xibuild @@ -0,0 +1,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" +} + -- cgit v1.2.1