[arch-commits] Commit in sword/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Nov 1 21:29:22 UTC 2015


    Date: Sunday, November 1, 2015 @ 22:29:22
  Author: bpiotrowski
Revision: 145484

archrelease: copy trunk to community-staging-x86_64, community-staging-i686

Added:
  sword/repos/community-staging-i686/
  sword/repos/community-staging-i686/PKGBUILD
    (from rev 145483, sword/trunk/PKGBUILD)
  sword/repos/community-staging-x86_64/
  sword/repos/community-staging-x86_64/PKGBUILD
    (from rev 145483, sword/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   64 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

Copied: sword/repos/community-staging-i686/PKGBUILD (from rev 145483, sword/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-11-01 21:29:22 UTC (rev 145484)
@@ -0,0 +1,64 @@
+# $Id$
+# 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 python2-sword)
+_mainver=1.7
+pkgver=1.7.4
+pkgrel=5
+pkgdesc="Library for Bible study programs"
+arch=('x86_64' 'i686')
+url="http://www.crosswire.org/sword/"
+license=('GPL')
+makedepends=('curl' 'clucene' 'swig' 'cmake' 'python' 'python2')
+source=("http://www.crosswire.org/ftpmirror/pub/$pkgbase/source/v$_mainver/$pkgbase-$pkgver.tar.gz")
+md5sums=('1677f02a86cbf07713d4e1d4c39791e6')
+
+prepare() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  mkdir build
+}
+
+build() {
+  cd "$srcdir/$pkgbase-$pkgver/build"
+  
+  #./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
+  cmake .. -DLIBSWORD_LIBRARY_TYPE="Shared" -DSYSCONF_INSTALL_DIR='/etc' \
+           -DSWORD_BUILD_TESTS="Yes" -DSWORD_BINDINGS="Python" -DCMAKE_INSTALL_PREFIX=/usr
+  make
+
+  cp -a bindings/swig/python bindings/swig/python2
+  cd bindings/swig/python2
+  python2 setup.py build
+}
+
+package_sword() {
+  depends=('curl' 'clucene' 'swig')
+  backup=('etc/sword.conf')
+
+  cd "$srcdir/$pkgbase-$pkgver/build"
+  make DESTDIR="$pkgdir" install
+
+  # Move it into a separated package
+  rm -r "$pkgdir/usr/lib/python3.5"
+}
+
+package_python-sword() {
+  depends=('sword' 'python')
+
+  cd "$srcdir/$pkgbase-$pkgver/build/bindings/swig/python"
+  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
+}
+
+package_python2-sword() {
+  depends=('sword' 'python2')
+
+  cd "$srcdir/$pkgbase-$pkgver/build/bindings/swig/python2"
+  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
+}

Copied: sword/repos/community-staging-x86_64/PKGBUILD (from rev 145483, sword/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-11-01 21:29:22 UTC (rev 145484)
@@ -0,0 +1,64 @@
+# $Id$
+# 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 python2-sword)
+_mainver=1.7
+pkgver=1.7.4
+pkgrel=5
+pkgdesc="Library for Bible study programs"
+arch=('x86_64' 'i686')
+url="http://www.crosswire.org/sword/"
+license=('GPL')
+makedepends=('curl' 'clucene' 'swig' 'cmake' 'python' 'python2')
+source=("http://www.crosswire.org/ftpmirror/pub/$pkgbase/source/v$_mainver/$pkgbase-$pkgver.tar.gz")
+md5sums=('1677f02a86cbf07713d4e1d4c39791e6')
+
+prepare() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  mkdir build
+}
+
+build() {
+  cd "$srcdir/$pkgbase-$pkgver/build"
+  
+  #./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
+  cmake .. -DLIBSWORD_LIBRARY_TYPE="Shared" -DSYSCONF_INSTALL_DIR='/etc' \
+           -DSWORD_BUILD_TESTS="Yes" -DSWORD_BINDINGS="Python" -DCMAKE_INSTALL_PREFIX=/usr
+  make
+
+  cp -a bindings/swig/python bindings/swig/python2
+  cd bindings/swig/python2
+  python2 setup.py build
+}
+
+package_sword() {
+  depends=('curl' 'clucene' 'swig')
+  backup=('etc/sword.conf')
+
+  cd "$srcdir/$pkgbase-$pkgver/build"
+  make DESTDIR="$pkgdir" install
+
+  # Move it into a separated package
+  rm -r "$pkgdir/usr/lib/python3.5"
+}
+
+package_python-sword() {
+  depends=('sword' 'python')
+
+  cd "$srcdir/$pkgbase-$pkgver/build/bindings/swig/python"
+  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
+}
+
+package_python2-sword() {
+  depends=('sword' 'python2')
+
+  cd "$srcdir/$pkgbase-$pkgver/build/bindings/swig/python2"
+  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
+}



More information about the arch-commits mailing list