diff options
author | Nathan Johnson <njohnson@ena.com> | 2016-06-21 13:35:11 -0500 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-22 21:45:04 +0200 |
commit | 831188a6a35ed433909ddca7ebefa70c9029719c (patch) | |
tree | fa70bef517373ce60b74c6d0f7cbf1d05755adc8 /testing/php5-amqp/APKBUILD | |
parent | 510da6cf43e86bf53a64a018de95bd1e1621aee1 (diff) | |
download | aports-831188a6a35ed433909ddca7ebefa70c9029719c.tar.bz2 aports-831188a6a35ed433909ddca7ebefa70c9029719c.tar.xz |
testing/php5-amqp: new aport
https://pecl.php.net/package/amqp
PHP Extionson to communicate with any AMQP compliant server
Diffstat (limited to 'testing/php5-amqp/APKBUILD')
-rw-r--r-- | testing/php5-amqp/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/php5-amqp/APKBUILD b/testing/php5-amqp/APKBUILD new file mode 100644 index 0000000000..250e39452c --- /dev/null +++ b/testing/php5-amqp/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Nathan Johnson <nathan@nathanjohnson.info> +# Maintainer: Nathan Johnson <nathan@nathanjohnson.info> +pkgname=php5-amqp +_pkgreal=amqp +pkgver=1.7.0 +pkgrel=0 +pkgdesc="PHP extension couchbase" +url="http://pecl.php.net/package/$_pkgreal" +arch="all" +license="PHP" +depends="" +pecldepends="php5-dev autoconf" +makedepends="$pecldepends rabbitmq-c-dev" +source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz + package_version.patch" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + + [ -f ./package.xml ] || mv ../package.xml . || return 1 + phpize || return 1 + ./configure --prefix=/usr || return 1 + make || return 1 + + # In order to run the unit tests, you must have a rabbitmq server + # available. Run the tests locally to ensure everything works, + # but probably not a useful thing to tax the build server with this. + # I have tested this for version 1.7.0 -- nj + # make test || return 1 +} + +package() { + cd "$builddir" + + make INSTALL_ROOT="$pkgdir"/ install || return 1 + install -d "$pkgdir"/etc/php5/conf.d || return 1 + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php5/conf.d/$_pkgreal.ini +} + +md5sums="5a701987a5c9d1f1b70b359e14d5162e amqp-1.7.0.tgz +e4e9757fb1ae53b9d627bf52b2a8f157 package_version.patch" +sha256sums="b9a642c0ae60cc5e049c169a017cc355bfc0f2478db588b20925eaa63d358e83 amqp-1.7.0.tgz +717f407b667e11aaa7528555e311dbf468518480a33d57319e8a94d8a7bf865d package_version.patch" +sha512sums="7fb16c1f49814e8eb74635672e80023bbe8655536efb28f9899c55ef328574dd806d51b7a39f972777cc643105acc6918b10009af09e4106b395b246c3463116 amqp-1.7.0.tgz +dcc1fc97528c8b8a04c13d6e9249f1afc0c77bb4bb8ae504c4579a76665e71727b99e547a4fbd1601a72ac5f503854f7dddf1f7e267c90ab32f5d81f52b092d6 package_version.patch" |