blob: f842fcaf75eb3a655e88ed32f6d58030d2322146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-event
_pkgname=event
pkgver=2.5.1
pkgrel=0
pkgdesc="PHP extension that provides interface to libevent library - PECL"
url="https://pecl.php.net/package/event"
arch="all"
license="PHP-3.01"
depends="php7-sockets"
makedepends="php7-dev autoconf libevent-dev openssl-dev pkgconf re2c"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgname-$pkgver.tgz"
builddir="$srcdir/$_pkgname-$pkgver"
provides="php7-event=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-event" # for backward compatibility
build() {
cd "$builddir"
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
cd "$builddir"
# Tests require sockets extension which is not bundled
sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/sockets.so `#' Makefile
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgname.so" > "$pkgdir"/etc/php7/conf.d/$_pkgname.ini
}
sha512sums="b6225ca3a05dfe8e1b90a719bc950978271f56bc07c64b861fe8abecdbdac248b0566467ac3d6d80c9417c4e6c7cc9329274d3c36e49e27e4b349b959d5bd2af php7-pecl-event-2.5.1.tgz"
|