diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-07 18:49:15 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-07 21:04:11 -0300 |
commit | 9502065dd849eaff994e241c13d3daeef174364f (patch) | |
tree | f16cbd69f18cb53a3548f63c01bd334e922ddeb6 /libre-testing | |
parent | c0f6f0bc32e3349c840aa1cd915fc12b2a22cc03 (diff) | |
download | abslibre-9502065dd849eaff994e241c13d3daeef174364f.tar.gz abslibre-9502065dd849eaff994e241c13d3daeef174364f.tar.bz2 abslibre-9502065dd849eaff994e241c13d3daeef174364f.zip |
bibletime: add new package to [libre-testing]
Diffstat (limited to 'libre-testing')
-rw-r--r-- | libre-testing/bibletime/PKGBUILD | 41 | ||||
-rw-r--r-- | libre-testing/bibletime/libre.patch | 46 |
2 files changed, 87 insertions, 0 deletions
diff --git a/libre-testing/bibletime/PKGBUILD b/libre-testing/bibletime/PKGBUILD new file mode 100644 index 000000000..91355030c --- /dev/null +++ b/libre-testing/bibletime/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 208912 2017-01-24 16:42:17Z felixonmars $ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Maintainer: Alexander F Rødseth <xyproto@archlinux.org> +# Contributor: SanskritFritz (gmail) +# Contributor: Tobias T. <OldShatterhand at gmx-topmail dot de> +# Maintainer: André Silva <emulatorman@parabola.nu> + +pkgname=bibletime +pkgver=2.11.0 +pkgrel=1.parabola1 +pkgdesc='Bible study tool, with qt5-webkit-ng support' +arch=('x86_64' 'i686') +url='http://www.bibletime.info/' +license=('GPL2') +depends=('sword' 'clucene' 'qt5-webkit-ng' 'qt5-svg') +makedepends=('cmake' 'qt5-tools' 'git') +source=("git://github.com/bibletime/bibletime.git#tag=v$pkgver" + 'libre.patch') +md5sums=('SKIP' + '7364f533a5e4df5edecff95c172a8fc9') + +prepare() { + mkdir -p build + cd bibletime + patch -p1 -i ../libre.patch +} + +build() { + cd build + + cmake ../bibletime \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/libre-testing/bibletime/libre.patch b/libre-testing/bibletime/libre.patch new file mode 100644 index 000000000..edbef3f8f --- /dev/null +++ b/libre-testing/bibletime/libre.patch @@ -0,0 +1,46 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 50c7391db..30a58e34f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -150,16 +150,6 @@ IF("${BIBLETIME_FRONTEND}" STREQUAL "MOBILE") + ADD_DEFINITIONS("-DBT_MOBILE") + ENDIF() + +-IF(Qt5Core_VERSION VERSION_LESS 5.6.0) +- SET(USEWEBENGINE OFF) +-ELSE() +- SET(USEWEBENGINE ON) +-ENDIF() +- +-IF(USEWEBENGINE) +- ADD_DEFINITIONS("-DUSEWEBENGINE") +-ENDIF() +- + # Define $bibletime_SOURCES + INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/cmake/BTSourceFileList.cmake") + +@@ -220,8 +210,6 @@ TARGET_LINK_LIBRARIES("bibletime" + + IF(${BIBLETIME_FRONTEND} STREQUAL "MOBILE") + qt5_use_modules("bibletime" Widgets WebKitWidgets Qml Quick Xml Network PrintSupport Svg) +-ELSEIF(USEWEBENGINE) +- qt5_use_modules("bibletime" Widgets WebEngine WebEngineWidgets WebChannel Xml Network PrintSupport Svg) + ELSE() + qt5_use_modules("bibletime" Widgets WebKit WebKitWidgets Xml Network PrintSupport Svg) + ENDIF() +@@ -276,13 +264,8 @@ INSTALL(FILES ${INSTALL_TMPL_LIST} + DESTINATION "${BT_SHARE_PATH}/bibletime/display-templates/") + + +-IF(USEWEBENGINE) +- INSTALL(FILES "src/frontend/display/btwebengine.js" +- DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/") +-ELSE() +- INSTALL(FILES "src/frontend/display/bthtml.js" +- DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/") +-ENDIF() ++INSTALL(FILES "src/frontend/display/bthtml.js" ++ DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/") + + INSTALL(FILES "docs/license.html" + DESTINATION "${BT_SHARE_PATH}/bibletime/license/") |