blob: 9514166765d5a9c15647de49803595c00df4ce35 (
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
|
pkgname=php72-solr-git
pkgver=r665.9c0e234
pkgrel=1
pkgdesc='PHP PECL extension for Apache Solr API (git version)'
arch=('x86_64')
url='https://pecl.php.net/package/solr'
license=('PHP')
depends=('php72')
source=("solr::git+https://github.com/php/pecl-search_engine-solr.git")
md5sums=('SKIP')
build() {
cd "$srcdir/solr"
phpize72
./configure --prefix=/usr
make
echo 'extension=solr.so' > solr.ini
}
pkgver() {
cd "$srcdir/solr"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
pushd "$srcdir/solr"
make INSTALL_ROOT="$pkgdir" install
install -Dm644 solr.ini "$pkgdir/etc/php72/conf.d/solr.ini"
popd
}
|