aports/testing/php83-pecl-eio/APKBUILD
2024-03-02 23:06:56 +01:00

43 lines
1.2 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php83-pecl-eio
_extname=eio
pkgver=3.1.3
pkgrel=0
pkgdesc="Interface to the libeio library PHP 8.3 - PECL"
url="https://pecl.php.net/package/eio"
arch="all"
license="Apache-2.0"
_phpv=83
_php=php$_phpv
depends="$_php-pcntl $_php-posix $_php-sockets"
makedepends="$_php-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
make
}
check() {
$_php -d extension=modules/$_extname.so --ri $_extname
local _modules="/usr/lib/$_php/modules"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
PHP_TEST_SHARED_EXTENSIONS=" \
-d extension=$_modules/pcntl.so \
-d extension=$_modules/posix.so \
-d extension=$_modules/sockets.so \
-d extension=modules/$_extname.so" TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
ce81a5b60f6374d291c2d09106d8a51192b21d7d122c3b93777eefd0f8e34c0929b5f3c0e25670f1c478970f6a5e14acb92d14fcb6a4914fdef91a40e273622e php-pecl-eio-3.1.3.tar.gz
"