aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-amqp/APKBUILD
blob: 8c7e93e8cf3d4a3dd7a903d2d410ebfb8a537c50 (plain) (blame)
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
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-amqp
_pkgreal=amqp
pkgver=1.7.1
pkgrel=0
pkgdesc="Communicate with any AMQP compliant server"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
pecldepends="php7-dev autoconf rabbitmq-c-dev"
makedepends="$pecldepends"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	phpize7 || return 1
	./configure --prefix=/usr --with-php-config=php-config7 || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php7/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini
}

md5sums="901befb3ba9c906e88ae810f83599baf  amqp-1.7.1.tgz"
sha256sums="38a92eaef1aa863404170bcd15605f7f78140eeec1ff5be6af65c5b8081e2599  amqp-1.7.1.tgz"
sha512sums="3cd712410e6614c764b307670ad2398d374bf438c20d28aaa96dc61cabc63530883f87cb1669d0370691b7ca901604a1d93fe81c4ca7dada776f923a368c3b19  amqp-1.7.1.tgz"