summaryrefslogtreecommitdiff
path: root/community/python2-xapian/PKGBUILD
blob: 2b3a0b85de3d17112367101eafde831769f569a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 105927 2014-02-19 11:00:34Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: DonVla <donvla/users.sourceforge/net>
# Contributor: Hervé Cauwelier <herve/oursours/net>

pkgname=python2-xapian
_realname=xapian-bindings
pkgver=1.2.17
epoch=1
pkgrel=1
pkgdesc="Python bindings for Xapian"
arch=(i686 x86_64)
url="http://xapian.org/docs/bindings/python/"
license=('GPL')
depends=('python2' "xapian-core=$epoch:$pkgver")
source=("http://oligarchy.co.uk/xapian/${pkgver}/${_realname}-${pkgver}.tar.xz")

build() {
  cd ${_realname}-$pkgver
    
  LDFLAGS=-lpython2.7 ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
         --prefix=/usr --with-python \
         PYTHON=/usr/bin/python2

  make
}

package() {
  cd ${_realname}-$pkgver

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
sha512sums=('4c8348ece62b57c4442e8cb16282b7da2a8ebecaf99eefbb263795c1451f1395c2073ea311df0159e74a4d52029682034926526b17554627cf8e286f328f36a7')