aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/php7-amqp/APKBUILD39
1 files changed, 20 insertions, 19 deletions
diff --git a/testing/php7-amqp/APKBUILD b/testing/php7-amqp/APKBUILD
index e236396db0..462e2159f5 100644
--- a/testing/php7-amqp/APKBUILD
+++ b/testing/php7-amqp/APKBUILD
@@ -4,33 +4,34 @@ pkgname=php7-amqp
_pkgreal=amqp
pkgver=1.9.0
pkgrel=0
-pkgdesc="Communicate with any AMQP compliant server"
-url="http://pecl.php.net/package/$_pkgreal"
+_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=
-pecldepends="php7-dev autoconf rabbitmq-c-dev"
-makedepends="$pecldepends"
-install=""
-subpackages=""
-source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-
-builddir="$srcdir"/$_pkgreal-$pkgver
+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"
- phpize7 || return 1
- ./configure --prefix=/usr --with-php-config=php-config7 || return 1
- make || return 1
+
+ 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 || return 1
- install -d "$pkgdir"/etc/php7/conf.d || return 1
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ mkdir -p "$confdir"
+ echo "extension=$_pkgreal.so" > "$confdir"/40_$_pkgreal.ini
}
-md5sums="d7e82b73db69fbe265596c60f6b08ee9 amqp-1.9.0.tgz"
-sha256sums="f45831d498b8fa47a151c31f6abdc0530aa6eabda6e2e10514aca3bdc76a5098 amqp-1.9.0.tgz"
-sha512sums="ce77266d9c95d87c7ddf177c531540e05f9120417e645f4595f204fad2d2ecd9f388f0e1e55d69bee845333b5b5976960cc2a603ea6860708df1eafe0aef9a10 amqp-1.9.0.tgz"
+sha512sums="ce77266d9c95d87c7ddf177c531540e05f9120417e645f4595f204fad2d2ecd9f388f0e1e55d69bee845333b5b5976960cc2a603ea6860708df1eafe0aef9a10 php7-amqp-1.9.0.tgz"