aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/php-zmq/APKBUILD
blob: 9e6fabba7102a8a53c2e6b5b10b6683cfe79d12d (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.3
_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="9c638df5a6347a0fefb0d43d780e6480  zmq-1.1.3.tgz"
sha256sums="c492375818bd51b355352798fb94f04d6828c6aeda41ba813849624af74144ce  zmq-1.1.3.tgz"
sha512sums="0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc  zmq-1.1.3.tgz"