aboutsummaryrefslogblamecommitdiffstats
path: root/testing/php7-pecl-zstd/APKBUILD
blob: a7e024f7f1946ed15355571b7ae6154b47b99ec2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   
             

             
                                          
                                       
                                        

                     
                                              
                           

                                                                                       




                                                                  
                                                                              



            
                                            
                                                                                      

                                                   
                                                                    


           



                                                            

 
                                                                                                                                                                       
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-zstd
_extname=zstd
pkgver=0.10.0
pkgrel=0
pkgdesc="PHP 7 Zstandard extension - PECL"
url="https://pecl.php.net/package/zstd"
arch="all !armhf" # tests fails on armhf
license="MIT"
depends="php7-common"
makedepends="php7-dev php7-pecl-apcu zstd-dev"
checkdepends="php7-openssl"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-zstd=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-zstd" # for backward compatibility

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7 --with-libzstd
	make
}

check() {
	local _modules=/usr/lib/php7/modules
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" \
		-d extension=$_modules/apcu.so \
		-d extension=$_modules/openssl.so \
		-d extension=modules/$_extname.so" TESTS=--show-diff
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="e316484a1a0adbc5d255e8f794bd04b1381c500accffcccfc294394b6232141d5af9398a44cf9a8432ac438b479f59114ad7cd871b72c46018e4a9c8f77fa8ff  php-pecl-zstd-0.10.0.tgz"