[arch-commits] Commit in sword/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Nov 22 01:11:44 UTC 2021
Date: Monday, November 22, 2021 @ 01:11:43
Author: felixonmars
Revision: 1054153
archrelease: copy trunk to community-staging-x86_64
Added:
sword/repos/community-staging-x86_64/
sword/repos/community-staging-x86_64/PKGBUILD
(from rev 1054152, sword/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: sword/repos/community-staging-x86_64/PKGBUILD (from rev 1054152, sword/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-22 01:11:43 UTC (rev 1054153)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: SanskritFritz (gmail)
+# Contributor: Alexander Rødseth
+# Contributor: Andrea Scarpino
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: TripleE <eric1548 at yahoo.com>
+# Contributor: Dominic Tubach
+
+pkgbase=sword
+pkgname=(sword python-sword)
+_mainver=1.9
+pkgver=1.9.0
+pkgrel=3
+pkgdesc="Library for Bible study programs"
+arch=('x86_64')
+url="https://www.crosswire.org/sword/"
+license=('GPL')
+makedepends=('curl' 'clucene' 'swig' 'cmake' 'python')
+source=("https://www.crosswire.org/ftpmirror/pub/$pkgbase/source/v$_mainver/$pkgbase-$pkgver.tar.gz")
+sha512sums=('9ed3fbb5024af1f93b1473bae0d95534d02a5b00b3c9d41a0f855cee8106dc4e330844080adbee7c3f74c0e5ce1480bf16c87c842421337a341f641bae11137f')
+
+prepare() {
+ cd $pkgbase-$pkgver
+ mkdir build
+}
+
+build() {
+ cd $pkgbase-$pkgver/build
+
+ # http://site.icu-project.org/download/61#TOC-Migration-Issues
+ CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
+
+ #./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
+ cmake .. -DLIBSWORD_LIBRARY_TYPE="Shared" -DSYSCONF_INSTALL_DIR='/etc' \
+ -DSWORD_BUILD_TESTS="Yes" -DSWORD_PYTHON_3=TRUE -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package_sword() {
+ depends=('curl' 'clucene' 'swig' 'xz')
+ backup=('etc/sword.conf')
+
+ cd $pkgbase-$pkgver/build
+ make DESTDIR="$pkgdir" install
+}
+
+package_python-sword() {
+ depends=('sword' 'python')
+
+ cd $pkgbase-$pkgver/build/bindings/swig/python3
+ python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
+}
More information about the arch-commits
mailing list