1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/php8-pecl-zmq/APKBUILD
2021-02-22 00:45:08 +00:00

38 lines
1.2 KiB
Text

# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php8-pecl-zmq
_extname=zmq
pkgver=1.1.4
pkgrel=0
pkgdesc="PHP 8 extension for ZeroMQ - PECL"
url="https://pecl.php.net/package/zmq"
arch="all"
license="PHP-3.01"
depends="php8-common"
makedepends="php8-dev zeromq-dev"
_commit=43464c42a6a47efdf8b7cab03c62f1622fb5d3c6
source="php-pecl-$_extname-$_commit.tar.gz::https://github.com/zeromq/php-zmq/archive/$_commit.tar.gz"
builddir="$srcdir/php-$_extname-$_commit"
#source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
#builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure --prefix=/usr --with-php-config=php-config8
make
}
check() {
php8 -dextension=modules/$_extname.so --ri $_extname
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/50_$_extname.ini
}
sha512sums="ece4f52b6717749d56280e2e988a5d291fe967c40489f1e7b7ac0a17688a5a92b2a9fa720978dbad0969830034371ea54e937dd7cce7a6d983162977afd290c7 php-pecl-zmq-43464c42a6a47efdf8b7cab03c62f1622fb5d3c6.tar.gz"