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


                                                   
             


                                          
                                                 

                     
                                              
                           
                                                                                       








                                                                              
                                            
                                                                                      

                                                   









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

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

check() {
	local _modules=/usr/lib/php8/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/php8/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

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