# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-amqp _pkgreal=amqp pkgver=1.7.0 pkgrel=2 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="5a701987a5c9d1f1b70b359e14d5162e amqp-1.7.0.tgz" sha256sums="b9a642c0ae60cc5e049c169a017cc355bfc0f2478db588b20925eaa63d358e83 amqp-1.7.0.tgz" sha512sums="7fb16c1f49814e8eb74635672e80023bbe8655536efb28f9899c55ef328574dd806d51b7a39f972777cc643105acc6918b10009af09e4106b395b246c3463116 amqp-1.7.0.tgz"