aboutsummaryrefslogblamecommitdiffstats
path: root/community/php7-pecl-zmq/APKBUILD
blob: ba5cd9ef21f6c152825c0b30fd4ece6ef83b31d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                  
                     

            


                                         

             

                                          
                                                                             
                                    

                                                                 


                      
 

                                                               







                                                               


           
                                               
                      




                                                                   

 
                                                                                                                                                                      
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
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"