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. \
4Through the accompanying ScriptureGuideManager app, you can download \
5hundreds of free copies of various Bibles, commentaries, and related books."
6HOMEPAGE="https://github.com/HaikuArchives/ScriptureGuide"
7COPYRIGHT="2004 Jan Bungeroth
8	2005-2021 ScriptureGuide Team"
9LICENSE="GNU GPL v2
10	MIT"
11REVISION="1"
12SOURCE_URI="https://github.com/Paradoxianer/ScriptureGuide/archive/v$portVersion.tar.gz"
13CHECKSUM_SHA256="c928f03bdb0763d0c26b0cc934da47f24e8e0f8c33e0d9bec305cff7e4bd1d4e"
14SOURCE_FILENAME="ScriptureGuide-v$portVersion.tar.gz"
15SOURCE_DIR="ScriptureGuide-$portVersion"
16
17ARCHITECTURES="all !x86_gcc2"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	scriptureguide$secondaryArchSuffix = $portVersion
22	app:ScriptureGuide = $portVersion
23	app:ScriptureGuideManager = $portVersion
24	"
25REQUIRES="
26	haiku$secondaryArchSuffix
27	cmd:awk
28	cmd:unzip
29	cmd:wget
30	lib:libsword_1.8.1$secondaryArchSuffix
31	lib:libz$secondaryArchSuffix
32	"
33
34BUILD_REQUIRES="
35	haiku${secondaryArchSuffix}_devel
36	devel:libsword_1.8.1$secondaryArchSuffix
37	devel:libz$secondaryArchSuffix
38	"
39BUILD_PREREQUIRES="
40	makefile_engine
41	cmd:gcc$secondaryArchSuffix
42	cmd:ld$secondaryArchSuffix
43	cmd:make
44	"
45
46BUILD()
47{
48	cd ScriptureGuide
49	make $jobArgs
50	cd ../ScriptureGuideManager
51	make $jobArgs
52}
53
54INSTALL()
55{
56	mkdir -p $appsDir $docDir
57	cp App/INSTALL.htm $docDir
58	cp App/README.htm $docDir
59	cp -R App/docs/*  $docDir/
60
61	cp -R  App/ScriptureGuide* $appsDir
62	addAppDeskbarSymlink $appsDir/ScriptureGuide
63	addAppDeskbarSymlink $appsDir/ScriptureGuideManager
64}
65