Files
haikuports/app-arch/cabextract/cabextract-1.11.recipe
2023-05-17 10:46:10 +02:00

61 lines
1.2 KiB
Bash

SUMMARY="A program to extract Microsoft cabinet files"
DESCRIPTION="cabextract is Free Software for extracting Microsoft cabinet \
files, also called .CAB files. It is distributed under the GNU GPL license and \
is based on the portable LGPL libmspack library. cabextract supports all \
features and formats of Microsoft cabinet files and Windows CE installation \
files. It can also look inside other files for embedded cabinets."
HOMEPAGE="https://www.cabextract.org.uk/"
COPYRIGHT="2000-2023 Stuart Caie"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://www.cabextract.org.uk/cabextract-$portVersion.tar.gz"
CHECKSUM_SHA256="b5546db1155e4c718ff3d4b278573604f30dd64c3c5bfd4657cd089b823a3ac6"
ARCHITECTURES="all ?arm ?ppc"
PROVIDES="
cabextract = $portVersion
cmd:cabextract = $portVersion
"
REQUIRES="
haiku
lib:libiconv
"
BUILD_REQUIRES="
haiku_devel
devel:libiconv
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:grep
cmd:make
cmd:sed
"
TEST_REQUIRES="
cmd:cmp
cmd:find
cmd:lcab
"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
}
TEST()
{
make check
lcab cabextract test.cab
"$sourceDir"/cabextract -dtmp test.cab
cmp cabextract tmp/cabextract
}