aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-amqp/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 22:41:31 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:53:18 +0200
commit4e44706f3a3ba549c56ca48fdd120d8a221c666d (patch)
treed44dc48610f8eb26e22e5543272b5b50b1fdc3c2 /testing/php7-amqp/APKBUILD
parentb803db240a4837595e5edd2be5caa4f7af98cbb4 (diff)
downloadaports-4e44706f3a3ba549c56ca48fdd120d8a221c666d.tar.bz2
aports-4e44706f3a3ba549c56ca48fdd120d8a221c666d.tar.xz
testing/php7-amqp: cleanup and improve abuild
Diffstat (limited to 'testing/php7-amqp/APKBUILD')
-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"