aboutsummaryrefslogblamecommitdiffstats
path: root/testing/php7-solr/APKBUILD
blob: 89614d5578b9bdb18b502febe2ce139154c8ec80 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                                                  
        



                                           
                                         
                   
                                                             
                                                       

                                 



                                     


                                                               



                      

                                            


                                                                                  

                                                                                                                                                            
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-solr
_pkgreal=solr
pkgver=2.4.0
_pkgver=${pkgver}
pkgrel=3
pkgdesc="Apache SOLR extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
options="!check" # Require Solr installed
depends="php7-json"
makedepends="php7-dev curl-dev libxml2-dev autoconf pcre-dev"
source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz
	fix-zend_acc_public.patch
	"
builddir="$srcdir"/$_pkgreal-$_pkgver

build() {
	cd "$builddir"
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir"/ install
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini
}

sha512sums="05b6e252fadf55a7104bc6963e522684dad80540315e89729f4c589698ee68ff71f0e536b0e38ee4ae10b01cb04115ca12ced2897c3145d46fc54ab719de3590  solr-2.4.0.tgz
44f171c887e3b3a28d1294fe443d16aa0cef3ad25e92764ea6cb03bb5da26fb520bcec487f1f3cb188957a19221898d424967d4f6c67efc64def64c921a638d6  fix-zend_acc_public.patch"