mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-11 08:41:38 +02:00
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php83-pecl-event
|
|
_php=83
|
|
_extname=event
|
|
pkgver=3.1.0_rc1
|
|
_pkgver=${pkgver/_rc/RC}
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.3 extension that provides interface to libevent library - PECL"
|
|
url="https://pecl.php.net/package/event"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
depends="php$_php-sockets"
|
|
makedepends="php$_php-dev libevent-dev openssl-dev>3"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$_pkgver"
|
|
|
|
build() {
|
|
phpize$_php
|
|
./configure --prefix=/usr --with-php-config=php-config$_php
|
|
make
|
|
}
|
|
|
|
check() {
|
|
local _ext="-d extension=modules/$_extname.so"
|
|
php$_php $_ext --ri $_extname
|
|
# Tests require sockets extension which is not bundled
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test \
|
|
PHP_TEST_SHARED_EXTENSIONS=" \
|
|
-d extension=/usr/lib/php$_php/modules/sockets.so \
|
|
$_ext" \
|
|
TESTS="--show-diff tests"
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php$_php/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
b844ae62a430aeda589d4271f1b70fecb3aacd0c04d3fd84d7f539f6d93a0ea94115621a136817d83ca832efee61244bbefef5652c733f0a7dd8214fe59b0fd1 php-pecl-event-3.1.0_rc1.tgz
|
|
"
|