From 3da47034f9dff7e88b43e9e61432ada874d02b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 13 Feb 2021 02:26:02 +0100 Subject: [PATCH] Add recipe for ancient, a multi-format decompressor --- app-arch/ancient/ancient-1.0.recipe | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 app-arch/ancient/ancient-1.0.recipe diff --git a/app-arch/ancient/ancient-1.0.recipe b/app-arch/ancient/ancient-1.0.recipe new file mode 100644 index 000000000..119b46cf4 --- /dev/null +++ b/app-arch/ancient/ancient-1.0.recipe @@ -0,0 +1,50 @@ +SUMMARY="Modern decompressor for old data compression formats" +DESCRIPTION="This is a collection of decompression routines for old formats \ +popular in the Amiga, Atari computers and some other systems from 80's \ +and 90's as well as some that are currently used which were used in a some \ +specific way in these old systems." +HOMEPAGE="https://github.com/temisu/ancient" +COPYRIGHT="2017-2020 Teemu Suutari" +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://github.com/temisu/ancient/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="5bb3aa98f9a0936fe7e6bb2eb16b0a84c4b5c6a64434eb51c3d8e6d21589421c" +SOURCE_DIR="ancient-$portVersion" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + ancient$secondaryArchSuffix = $portVersion + cmd:ancient$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + " + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + mkdir -p $commandBinDir + cp -a ancient$commandSuffix $commandBinDir +}