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

Felix Yan fyan at archlinux.org
Sat Dec 27 11:32:30 UTC 2014


    Date: Saturday, December 27, 2014 @ 12:32:29
  Author: fyan
Revision: 124672

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

Added:
  sword/repos/community-testing-i686/
  sword/repos/community-testing-i686/PKGBUILD
    (from rev 124671, sword/trunk/PKGBUILD)
  sword/repos/community-testing-x86_64/
  sword/repos/community-testing-x86_64/PKGBUILD
    (from rev 124670, sword/trunk/PKGBUILD)

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

Copied: sword/repos/community-testing-i686/PKGBUILD (from rev 124671, sword/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2014-12-27 11:32:29 UTC (rev 124672)
@@ -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=$_mainver.4
+pkgrel=2
+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.4"
+}
+
+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-testing-x86_64/PKGBUILD (from rev 124670, sword/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2014-12-27 11:32:29 UTC (rev 124672)
@@ -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=$_mainver.4
+pkgrel=2
+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.4"
+}
+
+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