aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-06-13 00:13:50 +0300
committerAndy Postnikov <apostnikov@gmail.com>2020-06-13 03:25:41 +0000
commit2f8194a7eee94fa74b87d69cb59ea171d8a1245e (patch)
tree4e8ed7309dc1c02c7b059a9a94305611a47f4952
parent48ca8c2166b55c47242231fff808d9211ed4cd87 (diff)
downloadaports-2f8194a7eee94fa74b87d69cb59ea171d8a1245e.tar.gz
aports-2f8194a7eee94fa74b87d69cb59ea171d8a1245e.tar.bz2
aports-2f8194a7eee94fa74b87d69cb59ea171d8a1245e.tar.xz
community/php7-pecl-zmq: fix license and improve
-rw-r--r--community/php7-pecl-zmq/APKBUILD14
1 files changed, 4 insertions, 10 deletions
diff --git a/community/php7-pecl-zmq/APKBUILD b/community/php7-pecl-zmq/APKBUILD
index 6588231559..267f804f20 100644
--- a/community/php7-pecl-zmq/APKBUILD
+++ b/community/php7-pecl-zmq/APKBUILD
@@ -3,13 +3,13 @@
pkgname=php7-pecl-zmq
_pkgreal=zmq
pkgver=1.1.3
-pkgrel=6
+pkgrel=7
pkgdesc="PHP extension for ZeroMQ - PECL"
url="https://pecl.php.net/package/zmq"
arch="all"
-license="PHP"
+license="PHP-3.01"
depends="php7-common"
-makedepends="php7-dev autoconf zeromq-dev"
+makedepends="php7-dev zeromq-dev"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz
fix-php-7.3-compile.patch"
builddir="$srcdir/$_pkgreal-$pkgver"
@@ -17,25 +17,19 @@ 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"
-
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
- local confdir="$pkgdir/etc/php7/conf.d"
- cd "$builddir"
-
make INSTALL_ROOT="$pkgdir" install
+ local confdir="$pkgdir/etc/php7/conf.d"
mkdir -p "$confdir"
echo "extension=$_pkgreal.so" > "$confdir"/50_$_pkgreal.ini
}