aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-zmq/APKBUILD
blob: f7c5ebf85b9ff9fa8b2a16920b809300a96bb0a9 (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
37
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-zmq
_pkgreal=zmq
pkgver=1.1.3
_pkgver=${pkgver}
pkgrel=0
pkgdesc="ZeroMQ is a software library that lets you quickly design and implement a fast message-based applications."
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
pecldepends="php7-dev autoconf zeromq-dev"
makedepends="$pecldepends"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"

builddir="$srcdir"/$_pkgreal-$_pkgver

build() {
	cd "$builddir"
	phpize7 || return 1
	./configure --prefix=/usr --with-php-config=php-config7 || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php7/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
}

md5sums="9c638df5a6347a0fefb0d43d780e6480  zmq-1.1.3.tgz"
sha256sums="c492375818bd51b355352798fb94f04d6828c6aeda41ba813849624af74144ce  zmq-1.1.3.tgz"
sha512sums="0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc  zmq-1.1.3.tgz"