deark: new recipe (#9671)

Co-authored-by: Alex Brown <mail@alexbrown.info>
This commit is contained in:
Alex Brown
2023-10-23 09:26:31 +01:00
committed by GitHub
parent b079f0b395
commit 892deb3969

View File

@@ -0,0 +1,49 @@
SUMMARY="Utility to extract data from various file formats"
DESCRIPTION="Deark is a command-line utility that can decode certain types of files, and either:
1. convert them to a more-modern or more-readable format; or
2. extract embedded files from them"
HOMEPAGE="https://entropymine.com/deark/
https://github.com/jsummers/deark"
COPYRIGHT="2023 Jason Summers"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/jsummers/deark/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2aa29675c0b326c5242da2c5e4b1d7746f2aad7bcc9bfefa73448e580e9fae2c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
deark$secondaryArchSuffix = $portVersion
cmd:deark = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
help2man$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:help2man
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make$secondaryArchSuffix
"
BUILD()
{
make
make man
}
INSTALL()
{
mkdir -p $prefix/bin
mkdir -p $manDir/man1
make DEARK_INSTALLDIR=$prefix/bin install
cp deark.1 $manDir/man1
}