summaryrefslogtreecommitdiffstats
path: root/testing/php-zmq/APKBUILD
blob: 397707dd20d88eccb9b76c57aca8ba718312341e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-zmq
pkgver=1.0.5
pkgrel=0
pkgdesc="ZeroMQ for PHP"
url="https://github.com/mkoppanen/php-zmq"
arch="all"
license="PHP"
depends="php"
makedepends="php-dev autoconf zeromq-dev"
subpackages=""
source="saveas-https://github.com/mkoppanen/php-zmq/archive/1.0.5.tar.gz/$pkgname-$pkgver.tar.gz
zmq.ini"
_builddir="$srcdir/php-zmq-$pkgver"

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --enable-zmq \
		--with-php-config=/usr/bin/php-config
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT=$pkgdir install || return 1
	install -D -m644 "$srcdir"/zmq.ini "$pkgdir"/etc/php/conf.d/zmq.ini
}

md5sums="06e36323b8af330b7aa137cbc3cbe6a4  php-zmq-1.0.5.tar.gz
06f848012c820c6e8e3e6c41b12bc1ce  zmq.ini"
sha256sums="3d6088e0d0c3ccdcb7d2c94c2f01862a3afd1f5c559ca09c34e92eacbc923782  php-zmq-1.0.5.tar.gz
873904053be7cd60ed26d1db515dbfc6d12bb832046a685e85777e7276e7e39c  zmq.ini"
sha512sums="73401760c6e5646a1b175cdaa7b3e5d05ca847766c72774e2aed14cf3f53f77edcdb159a04b0d6bf058861dfbcfaf3eec5bab1fd9310ec6fd7f4ba61762fa777  php-zmq-1.0.5.tar.gz
4a493427d11eb347c5a25681cc96d7d7cde27af329f688fa5c26aefeae34d85b2211ceb8bdafb807b9d5eca4842d31cbb1af8ca37255474b320174a3935add43  zmq.ini"