aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-amqp
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 23:52:06 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:53:18 +0200
commit5c506a893499aad250138b1d2d60624431840dfa (patch)
treeb6eb678db2152d489dc66010ba2bd4edfb4dc1ac /community/php7-amqp
parentb4be37d940f7681ce6b027729b23cd0eebd204df (diff)
downloadaports-5c506a893499aad250138b1d2d60624431840dfa.tar.bz2
aports-5c506a893499aad250138b1d2d60624431840dfa.tar.xz
community/php7-amqp: move from testing
Diffstat (limited to 'community/php7-amqp')
-rw-r--r--community/php7-amqp/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/php7-amqp/APKBUILD b/community/php7-amqp/APKBUILD
new file mode 100644
index 0000000000..462e2159f5
--- /dev/null
+++ b/community/php7-amqp/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
+pkgname=php7-amqp
+_pkgreal=amqp
+pkgver=1.9.0
+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="ce77266d9c95d87c7ddf177c531540e05f9120417e645f4595f204fad2d2ecd9f388f0e1e55d69bee845333b5b5976960cc2a603ea6860708df1eafe0aef9a10 php7-amqp-1.9.0.tgz"