blob: 02f17d7b62ab48169b4b5ac52fa5e01fba4de486 (
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
36
37
38
39
|
# 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
pkgname=php-xapian
pkgver="$(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)"
epoch=1
pkgrel=4
pkgdesc="PHP bindings for Xapian"
arch=(
'armv7h'
'i686'
'x86_64'
)
url="http://xapian.org/docs/bindings/php/"
depends=(
'php7'
'xapian-core'
)
license=(
'GPL'
)
_fileName="xapian-bindings-${pkgver}"
source=("http://oligarchy.co.uk/xapian/${pkgver}/${_fileName}.tar.xz")
sha512sums=('SKIP')
build() {
cd "${srcdir}/${_fileName}"
./configure \
XAPIAN_CONFIG=/usr/bin/xapian-config \
--prefix=/usr \
--with-php7
make
}
package() {
cd ${srcdir}/${_fileName}
make DESTDIR="$pkgdir" install
}
|