summaryrefslogtreecommitdiff
path: root/community/python-xapian/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-xapian/PKGBUILD')
-rw-r--r--community/python-xapian/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/python-xapian/PKGBUILD b/community/python-xapian/PKGBUILD
new file mode 100644
index 000000000..75e33ae6f
--- /dev/null
+++ b/community/python-xapian/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 113692 2014-06-28 02:38:09Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: DonVla <donvla/users.sourceforge/net>
+# Contributor: Hervé Cauwelier <herve/oursours/net>
+
+pkgbase=python-xapian
+pkgname=('python2-xapian')
+_realname=xapian-bindings
+pkgver=1.2.18
+epoch=1
+pkgrel=1
+pkgdesc="Python bindings for Xapian"
+arch=('i686' 'x86_64')
+url="http://xapian.org/docs/bindings/python/"
+license=('GPL')
+makedepends=('python' 'python2' "xapian-core=$epoch:$pkgver")
+source=("http://oligarchy.co.uk/xapian/${pkgver}/${_realname}-${pkgver}.tar.xz")
+
+build() {
+ cd "$srcdir/${_realname}-$pkgver"
+ ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
+ --prefix=/usr --with-python \
+ PYTHON=/usr/bin/python2
+ make
+}
+
+package_python2-xapian() {
+ depends=('python2' "xapian-core=$epoch:$pkgver")
+
+ cd ${_realname}-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
+sha512sums=('c0c417130bfaa3f059a003cacaa129662b216704d2f4bdfd997e1d2c0d74a77385f9f79b6ed5e3fb63b5217f78ebd43826fbee9c00f81264089728a02cffbd30')