aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-gearman/APKBUILD
blob: b91722a93e139efd3dd55e95a1b7dd472e3ab5de (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.6
_pkgver=${pkgver/_rc/RC}
pkgrel=0
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="5c159f766bd8674d387760bbd90ec9de0e54a677917f56e148db8b15c83c7d81ce0f1c2be68120e70fe4b5b70f502d0562f6038934e03997b3f480227ea30762  gearman-2.0.6.zip"