blob: c166abce98dbe99748218c6b9b65697640b3be8e (
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
43
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=php7-gearman
_pkgreal=gearman
_prefix=pecl-gearman
pkgver=2.0.5
_pkgver=${pkgver/_rc/RC}
pkgrel=1
pkgdesc="PHP7 wrapper to libgearman"
url="https://github.com/wcgallego/pecl-gearman"
arch="all"
license="PHP"
options="!check" # Requires server running
depends=
makedepends="gearman-dev autoconf libtool php7-dev php7-pcntl"
install=
subpackages=
source="https://github.com/wcgallego/$_prefix/archive/$_pkgreal-$_pkgver.zip"
builddir="$srcdir/$_prefix-$_pkgreal-$_pkgver"
build() {
cd "$builddir"
phpize7
./configure \
--prefix=/usr \
--with-php-config=/usr/bin/php-config7
make
}
check() {
cd "$builddir"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > \
"$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
sha512sums="4dfa4a1a02ec98d5932a6038b5ac59a64fb4ffe20d7ebd371e557442134cc36eec19327452c66f5d9497b977c91f8a91e242527b14633486c8bdb844ab0f3ee4 gearman-2.0.5.zip"
|