summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e99b41aecc26fbc5cf19c1d9abe83da152f07269 (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
# Maintainer: MartiMcFly <martimcfly [at] autorisation.de>
# Last Version: curl -s 'https://oligarchy.co.uk/xapian/?C=M;O=D' | grep -oh '>[0-9]*\.[0-9]*\.[0-9]*\/<' |  grep -oh '[0-9]*\.[0-9]*\.[0-9]*' | head -n 1 

pkgbase=php-xapian
pkgname=('php-xapian')
_realname=xapian-bindings
pkgver=1.4.14
epoch=1
pkgrel=2
pkgdesc="PHP bindings for Xapian"
arch=('armv7h' 'i686' 'x86_64')
url="http://xapian.org/docs/bindings/php/"
depends=('php' "xapian-core=$epoch:$pkgver")
license=('GPL')
source=("http://oligarchy.co.uk/xapian/${pkgver}/${_realname}-${pkgver}.tar.xz")
sha512sums=('SKIP')

pkgver() {
    # Arch implements the latest release, for this reason the version has to be up to date!
    curl -s 'https://oligarchy.co.uk/xapian/?C=N;O=D' | grep -oh '>[0-9]*\.[0-9]*\.[0-9]*\/<' |  grep -oh '[0-9]*\.[0-9]*\.[0-9]*' | head -n 1
}

build() {
  cd "$srcdir/${_realname}-$pkgver"
  ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
    --prefix=/usr --with-php7
  make
}

package() {
  cd ${_realname}-$pkgver
  make DESTDIR="$pkgdir" install
}