aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mongodb/APKBUILD
blob: 61692f09d611900e0a2202793152a2d827acc571 (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: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mongodb
_pkgreal=mongodb
pkgver=1.3.4
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP7 MongoDB driver"
url="http://pecl.php.net/package/mongodb"
arch="x86_64 armhf"
license="PHP"
depends="php7-json"
makedepends="openssl-dev pcre-dev php7-dev autoconf"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
options="!check"  # tests requires additional dependencies (vagrant)

_builddir="$srcdir"/$_pkgreal-$_pkgver
build() {
	cd "$_builddir"
	phpize7 || return 1
	./configure --prefix=/usr \
		--with-php-config=/usr/bin/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/$_pkgreal.ini
}

sha512sums="016d61adab4b1ca697fa8c2f3d1198d1cc12f047e28de1abf17019ff1c7ab191c75696f206ad443c953242d07391d5397ded25369d4ed59ddfea8f5346b7f408  mongodb-1.3.4.tgz"