1SUMMARY="Bible study tool that supports a wide variety of Bibles"
2DESCRIPTION="ScriptureGuide is a Bible study tool. It supports all of the \
3features you'd expect: search, setting the font, taking notes, etc. Through \
4the accompanying ScriptureGuideManager app, you can download hundereds of free \
5copies of various Bibles, commentaries, and related books."
6HOMEPAGE="https://github.com/HaikuArchives/ScriptureGuide"
7COPYRIGHT="2014 ScriptureGuide Team"
8LICENSE="GNU GPL v2"
9REVISION="2"
10SOURCE_URI="https://github.com/HaikuArchives/ScriptureGuide/archive/v0.9.0.tar.gz"
11CHECKSUM_SHA256="63b36186eaf4be130f333e62fa0fb283dbff90149a14763e96c157d9950777b5"
12SOURCE_DIR="ScriptureGuide-$portVersion"
13
14ARCHITECTURES="?all !x86_gcc2 x86"
15SECONDARY_ARCHITECTURES="x86"
16
17PROVIDES="
18	scriptureguide$secondaryArchSuffix = $portVersion
19	app:ScriptureGuide = $portVersion
20	app:ScriptureGuideManager = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	icu$secondaryArchSuffix
25	cmd:awk
26	cmd:unzip
27	cmd:wget
28	lib:libsword$secondaryArchSuffix
29	lib:libz$secondaryArchSuffix
30	"
31
32BUILD_REQUIRES="
33	haiku${secondaryArchSuffix}_devel
34	icu${secondaryArchSuffix}_devel
35	devel:libsword$secondaryArchSuffix
36	devel:libz$secondaryArchSuffix
37	"
38BUILD_PREREQUIRES="
39	makefile_engine
40	cmd:gcc$secondaryArchSuffix
41	cmd:ld$secondaryArchSuffix
42	cmd:make
43	"
44
45BUILD()
46{
47	cd ScriptureGuide
48	make $jobArgs
49	cd ../ScriptureGuideManager
50	make $jobArgs
51}
52
53INSTALL()
54{
55	mkdir -p $appsDir
56	cp -R App $appsDir
57	mv $appsDir/App $appsDir/ScriptureGuide
58
59	addAppDeskbarSymlink $appsDir/ScriptureGuide/ScriptureGuide
60	addAppDeskbarSymlink $appsDir/ScriptureGuide/ScriptureGuideManager
61}
62