From 5f23c2ec2168aab1e3248bf0f2aa4d4bb584ad78 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 7 Dec 2014 14:43:40 -0500 Subject: [PATCH] Create recipe for ScriptureGuide. --- .../scriptureguide-0.9.0.recipe | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 haiku-apps/scriptureguide/scriptureguide-0.9.0.recipe diff --git a/haiku-apps/scriptureguide/scriptureguide-0.9.0.recipe b/haiku-apps/scriptureguide/scriptureguide-0.9.0.recipe new file mode 100644 index 000000000..bc9b61c41 --- /dev/null +++ b/haiku-apps/scriptureguide/scriptureguide-0.9.0.recipe @@ -0,0 +1,69 @@ +SUMMARY="Bible study tool that supports a wide variety of Bibles and commentaries" +DESCRIPTION="ScriptureGuide is a Bible study tool. It supports all of the \ +features you'd expect: search, setting the font, taking notes, etc. Through \ +the accompanying ScriptureGuideManager app, you can download hundereds of free \ +copies of various Bibles, commentaries, and related books." +COPYRIGHT="2014 ScriptureGuide Team" +LICENSE="GNU GPL v2" +HOMEPAGE="https://github.com/HaikuArchives/ScriptureGuide" +SRC_URI="https://github.com/HaikuArchives/ScriptureGuide/archive/v0.9.0.tar.gz" +CHECKSUM_SHA256="63b36186eaf4be130f333e62fa0fb283dbff90149a14763e96c157d9950777b5" +SOURCE_DIR="ScriptureGuide-$portVersion" +REVISION="1" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + scriptureguide$secondaryArchSuffix = $portVersion + app:ScriptureGuide = $portVersion + app:ScriptureGuideManager = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + cmd:awk + cmd:wget + cmd:unzip + lib:libsword$secondaryArchSuffix + lib:libz$secondaryArchSuffix + icu$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libsword$secondaryArchSuffix + devel:libz$secondaryArchSuffix + icu${secondaryArchSuffix}_devel + " + +BUILD_PREREQUIRES=" + makefile_engine + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:mkdepend + " + +BUILD() +{ + cd ScriptureGuide + make $jobArgs + cd ../ScriptureGuideManager + make $jobArgs +} + +INSTALL() +{ + mkdir -p $appsDir + cp -R App $appsDir + mv $appsDir/App $appsDir/ScriptureGuide + + addAppDeskbarSymlink $appsDir/ScriptureGuide/ScriptureGuide + addAppDeskbarSymlink $appsDir/ScriptureGuide/ScriptureGuideManager +}