blob: 13d41c33d2fd9c7ec291a953e02983e67393d429 (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-amqp
_pkgreal=amqp
pkgver=1.9.1
pkgrel=0
_phpver=${pkgname#php}
_phpver=${_phpver%%-*}
pkgdesc="PHP$_phpver extension: Communicate with any AMQP compliant server"
url="http://pecl.php.net/package/amqp"
arch="all"
license="PHP"
depends="php$_phpver-common"
makedepends="php$_phpver-dev autoconf rabbitmq-c-dev"
source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
options="!check" # it seems that tests need running AMQP server
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
phpize$_phpver
./configure --prefix=/usr --with-php-config=php-config$_phpver
make
}
package() {
local confdir="$pkgdir/etc/php$_phpver/conf.d"
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$confdir"
echo "extension=$_pkgreal.so" > "$confdir"/40_$_pkgreal.ini
}
sha512sums="5d3208fdf64148f0fd0c0efc7634750a7abd308ad5fd4b8db09cc7ff87dc46c88d3214ec4bec3cba43d51b30ea04ec93e08fe31c7a70ec2e63810cf01d7c3e39 php7-amqp-1.9.1.tgz"
|