aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mongodb/APKBUILD
blob: 29a1da75aee694a9f1fc6aa42dcf60ef7c02e1ce (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-mongodb
_pkgreal=mongodb
pkgver=1.2.8
_pkgver=${pkgver/_rc/RC}
pkgrel=1
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"

_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
}

md5sums="7c871c22fe7c8afdbe055e24075e95cf  mongodb-1.2.8.tgz"
sha256sums="38090c38f0d52dd0a4c41c4f7f7e4e4a86a6375b6c5009e754b19451212d0bdd  mongodb-1.2.8.tgz"
sha512sums="ef174fad777a139bd0a4b0b53ba30ea1614e5ebb72ef4dc3c2f1a99f3c17caa237563d9e93906f0516dabfb81c738a0ea6e02421e9605908613925839c5cb7ff  mongodb-1.2.8.tgz"