From 892deb396964bf9f602ceab47f3cae3e07b618dc Mon Sep 17 00:00:00 2001 From: Alex Brown Date: Mon, 23 Oct 2023 09:26:31 +0100 Subject: [PATCH] deark: new recipe (#9671) Co-authored-by: Alex Brown --- app-misc/deark/deark-1.6.5.recipe | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 app-misc/deark/deark-1.6.5.recipe diff --git a/app-misc/deark/deark-1.6.5.recipe b/app-misc/deark/deark-1.6.5.recipe new file mode 100644 index 000000000..9c646f592 --- /dev/null +++ b/app-misc/deark/deark-1.6.5.recipe @@ -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 +}