summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d7c8d448b18e834595b0a6ef8659cd947c16781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Tobias T. <OldShatterhand at gmx-topmail dot de>
# Contributor: SanskritFritz (gmail)
# Maintainer: Bink

pkgname=bibletime-git
_gitname="bibletime"
pkgver=v3.0_rc1.r1580.gb3ff1d542
pkgrel=1
epoch=2
pkgdesc="A Bible study application based on the Sword library and Qt toolkit."
arch=('x86_64' 'i686')
url="https://bibletime.info/"
license=('GPL2')
depends=('sword' 'qt6-webengine' 'qt6-svg')
makedepends=('git' 'po4a' 'docbook-xsl' 'docbook-xml' 'clucene' 'cmake' 'qt6-tools')
provides=('bibletime')
conflicts=('bibletime')
source=("git+https://github.com/bibletime/bibletime.git")

md5sums=('SKIP')

pkgver() {
	cd "$_gitname"
	git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	_xslstylespath="/usr/share/xml/docbook/xsl-stylesheets-"$(pacman -Q docbook-xsl | cut -d ' ' -f 2 | cut -d '-' -f 1)
	mkdir -p "$srcdir/$_gitname/build_dir"
	cd "$srcdir/$_gitname/build_dir"

	sed -i 's/@BT_VERSION_FULL@//g' ../cmake/platforms/linux/bibletime.desktop.cmake

	CXXFLAGS+=" -fpermissive"

	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DUSE_QT6=ON \
	      -DBUILD_HANDBOOK_HTML=ON \
	      -DBUILD_HANDBOOK_PDF=OFF \
	      -DBUILD_HOWTO_HTML=ON \
	      -DBUILD_HOWTO_PDF=OFF \
	      -DBT_DOCBOOK_XSL_HTML_CHUNK_XSL=$_xslstylespath/html/chunk.xsl \
	      -DBT_DOCBOOK_XSL_PDF_DOCBOOK_XSL=$_xslstylespath/fo/docbook.xsl \
	      -DQT_LUPDATE_EXECUTABLE=/usr/lib/qt6/bin/lupdate \
	      -DQT_LRELEASE_EXECUTABLE=/usr/lib/qt6/bin/lrelease \
	      ..
	make
}

package() {
	cd "$srcdir/$_gitname/build_dir"
	make DESTDIR="$pkgdir" install
}