Files
haikuports/sys-fs/mtools/mtools-4.0.43.recipe

100 lines
2.4 KiB
Bash

SUMMARY="Utilities to access MS-DOS disks without mounting"
DESCRIPTION="Mtools is a collection of utilities to access MS-DOS disks from \
GNU and Unix without mounting them. It supports Win'95 style long file names, \
OS/2 Xdf disks and 2m disks (store up to 1992k on a high density 3 1/2 disk). \
In addition to file access, it supports many FAT-specific features: volume \
labels, FAT-specific file attributes (hidden, system, ...), \"bad block\" map \
maintenance, access to remote floppy drives, Iomega ZIP disk protection, \
\"secure\" erase, display of file's on-disk layout, etc."
HOMEPAGE="https://www.gnu.org/software/mtools/"
COPYRIGHT="1997-2018 Alain Knaff"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://ftpmirror.gnu.org/mtools/mtools-$portVersion.tar.lz
https://ftp.gnu.org/gnu/mtools/mtools-$portVersion.tar.lz"
CHECKSUM_SHA256="997ffe4125a19de1fd433ed63f128f7d54bc1a5915f3cdb36da6491ef917f217"
ARCHITECTURES="all"
GLOBAL_WRITABLE_FILES="
settings/mtools.conf auto-merge
"
PROVIDES="
mtools = $portVersion
cmd:amuFormat.sh = $portVersion
cmd:lz = $portVersion
cmd:mattrib = $portVersion
cmd:mbadblocks = $portVersion
cmd:mcat = $portVersion
cmd:mcd = $portVersion
cmd:mcheck = $portVersion
cmd:mclasserase = $portVersion
cmd:mcomp = $portVersion
cmd:mcopy = $portVersion
cmd:mdel = $portVersion
cmd:mdeltree = $portVersion
cmd:mdir = $portVersion
cmd:mdu = $portVersion
cmd:mformat = $portVersion
cmd:minfo = $portVersion
cmd:mkmanifest = $portVersion
cmd:mlabel = $portVersion
cmd:mmd = $portVersion
cmd:mmount = $portVersion
cmd:mmove = $portVersion
cmd:mpartition = $portVersion
cmd:mrd = $portVersion
cmd:mren = $portVersion
cmd:mshortname = $portVersion
cmd:mshowfat = $portVersion
cmd:mtools = $portVersion
cmd:mtoolstest = $portVersion
cmd:mtype = $portVersion
cmd:mxtar = $portVersion
cmd:mzip = $portVersion
cmd:tgz = $portVersion
cmd:uz = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:make
"
defineDebugInfoPackage mtools \
"$binDir"/mkmanifest \
"$binDir"/mtools \
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
install -m 644 mtools.conf "$settingsDir"
sed -i \
-e "s|$sysconfDir/|`finddir B_SYSTEM_SETTINGS_DIRECTORY`/|g;" \
"$manDir"/man1/mtools.1 \
"$manDir"/man5/mtools.5 \
sed -i -e "s/^SAMPLE FILE/#&/;" "$settingsDir"/mtools.conf
}
TEST()
{
make check
}