From 815953befd17c444d36abf467d47d7b8df291523 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Sun, 21 Oct 2018 01:03:28 +0300 Subject: community/php7-pecl-zmq: renamed from php7-zmq, modernize --- community/php7-pecl-zmq/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++ community/php7-zmq/APKBUILD | 43 ---------------------------------------- 2 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 community/php7-pecl-zmq/APKBUILD delete mode 100644 community/php7-zmq/APKBUILD diff --git a/community/php7-pecl-zmq/APKBUILD b/community/php7-pecl-zmq/APKBUILD new file mode 100644 index 0000000000..ba5cd9ef21 --- /dev/null +++ b/community/php7-pecl-zmq/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Fabio Ribeiro +# Maintainer: Fabio Ribeiro +pkgname=php7-pecl-zmq +_pkgreal=zmq +pkgver=1.1.3 +pkgrel=3 +pkgdesc="PHP extension for ZeroMQ - PECL" +url="https://pecl.php.net/package/zmq" +arch="all" +license="PHP" +depends="php7-common" +makedepends="php7-dev autoconf zeromq-dev" +source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" +provides="php7-zmq=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-zmq" # for backward compatibility + +build() { + cd "$builddir" + + phpize7 + ./configure --prefix=/usr --with-php-config=php-config7 + make +} + +check() { + cd "$builddir" + + # XXX: 007-addremovepoll.phpt fails, ignore it for now. + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test || true +} + +package() { + local confdir="$pkgdir/etc/php7/conf.d" + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + echo "extension=$_pkgreal.so" > "$confdir"/50_$_pkgreal.ini +} + +sha512sums="0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc php7-pecl-zmq-1.1.3.tgz" diff --git a/community/php7-zmq/APKBUILD b/community/php7-zmq/APKBUILD deleted file mode 100644 index 31c5953851..0000000000 --- a/community/php7-zmq/APKBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Contributor: Fabio Ribeiro -# Maintainer: Fabio Ribeiro -pkgname=php7-zmq -_pkgreal=zmq -pkgver=1.1.3 -pkgrel=2 -_phpver=${pkgname#php} -_phpver=${_phpver%%-*} -pkgdesc="PHP$_phpver extension for ZeroMQ" -url="http://pecl.php.net/package/zmq" -arch="all" -license="PHP" -depends="php$_phpver-common" -makedepends="php$_phpver-dev autoconf zeromq-dev" -source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" -builddir="$srcdir/$_pkgreal-$pkgver" - -build() { - cd "$builddir" - - phpize$_phpver - ./configure --prefix=/usr --with-php-config=php-config$_phpver - make -} - -check() { - cd "$builddir" - - # XXX: 007-addremovepoll.phpt fails, ignore it for now. - make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test || true -} - -package() { - local confdir="$pkgdir/etc/php$_phpver/conf.d" - cd "$builddir" - - make INSTALL_ROOT="$pkgdir" install - - mkdir -p "$confdir" - echo "extension=$_pkgreal.so" > "$confdir"/50_$_pkgreal.ini -} - -sha512sums="0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc php7-zmq-1.1.3.tgz" -- cgit v1.2.3