mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-10 12:46:33 +02:00
testing/php83-pecl-eio: new aport
This commit is contained in:
parent
0a7091cee8
commit
005d9b1b63
1 changed files with 43 additions and 0 deletions
43
testing/php83-pecl-eio/APKBUILD
Normal file
43
testing/php83-pecl-eio/APKBUILD
Normal file
|
@ -0,0 +1,43 @@
|
|||
# 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
|
||||
"
|
Loading…
Add table
Reference in a new issue