aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-zmq/APKBUILD
blob: 89231c0799291c4a1af6124a42310f8d2af99848 (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: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-zmq
_pkgreal=zmq
pkgver=1.1.2
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP extension that provides bindings for ZeroMQ messaging"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
pecldepends="php-dev autoconf"
makedepends="$pecldepends zeromq-dev"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"

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

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

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

md5sums="74da2fc1aa83e6fa27acffb9a37596b9  zmq-1.1.2.tgz"
sha256sums="c9b0af56826fc5e1a95a0fef25e671d9839a421d79e174931faacd8bee389f31  zmq-1.1.2.tgz"
sha512sums="603448a3bc2851b945a2c0c9e85c6eb50d6e44e1cfdfef9e4ff5ba675c15c23d7c3e06fa6234e9dc50f4c6a54098a9e60f5b8b0718f7f16657f0a72368dae987  zmq-1.1.2.tgz"