mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 20:54:08 +02:00
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-ds
|
|
_extname=ds
|
|
pkgver=1.6.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 extension for efficient Data Structures - PECL"
|
|
url="https://pecl.php.net/package/ds"
|
|
arch="all"
|
|
license="MIT"
|
|
_phpv=81
|
|
_php=php$_phpv
|
|
depends="$_php-common"
|
|
makedepends="$_php-dev"
|
|
checkdepends="composer
|
|
$_php-ctype $_php-curl $_php-iconv $_php-mbstring $_php-openssl $_php-phar
|
|
$_php-dom $_php-opcache $_php-tokenizer $_php-xml $_php-xmlwriter
|
|
"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
|
|
php-pecl-$_extname-$pkgver-composer.json::https://github.com/php-ds/ext-ds/raw/v$pkgver/composer.json
|
|
php-pecl-$_extname-$pkgver-phpunit.xml::https://github.com/php-ds/ext-ds/raw/v$pkgver/phpunit.xml
|
|
"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
mkdir tests && cd tests
|
|
cp ../../php-pecl-$_extname-$pkgver-composer.json composer.json
|
|
cp ../../php-pecl-$_extname-$pkgver-phpunit.xml phpunit.xml
|
|
|
|
$_php /usr/bin/composer.phar install --prefer-dist --no-interaction
|
|
}
|
|
|
|
build() {
|
|
phpize$_phpv
|
|
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
|
make
|
|
}
|
|
|
|
check() {
|
|
local _testphp="$_php -d extension=$builddir/modules/$_extname.so"
|
|
$_testphp --ri $_extname
|
|
cd tests && $_testphp vendor/bin/phpunit
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/$_php/conf.d
|
|
mkdir -p $_confdir
|
|
echo "extension=$_extname" > $_confdir/$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
e1337fb506f7f52c1a01b750d305579bd00eb870bc698e8a8601ea9bb5929de23c0134fdcb0593e5724be0e5089e3f73c4f1b290d153c6daca3315fb403ff0f3 php-pecl-ds-1.6.0.tgz
|
|
52a161f8fc2ee064601edbda20cdef5e09f9a53563c49766c7294ba67fec876d4e663858b99b130b0a56535ebff4c6cc9b11190735cee65cfe851742867b1983 php-pecl-ds-1.6.0-composer.json
|
|
32fed119d6fbe0541468987cd73c6104f848e2c1616cd71b068c6d0d480a476edff24f031153d6695c4b3c0d63352c652cf61d902031e1d761a120ad8525afd0 php-pecl-ds-1.6.0-phpunit.xml
|
|
"
|