summaryrefslogblamecommitdiff
path: root/user/mtools/APKBUILD
blob: 34b0b873076a453e6fdd5101d185276093a04ae9 (plain) (tree)































                                                                                                                                                                    
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=mtools
pkgver=4.0.24
pkgrel=0
pkgdesc="Utilities to access MS-DOS disks without mounting them"
url="https://www.gnu.org/software/mtools/"
arch="all"
options="!check"  # No test suite.
license="GPL-3.0+"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/mtools/mtools-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 -t "$pkgdir"/etc mtools.conf
	sed -i -e 's/^SAMPLE FILE$/#&/' "$pkgdir"/etc/mtools.conf
}

sha512sums="b74becc4f696315cfabc016d1746e744b43e366de73bf1bffeec4fbab1e4815967594de8acb4af01f89d36a925f93672efbac205b89540161bd53ab7edebcf04  mtools-4.0.24.tar.bz2"