blob: 20ec210d0906a2fe493154d3fd5bdbee5d0839b6 (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mongodb
_pkgreal=mongodb
pkgver=1.4.2
_pkgver=${pkgver/_rc/RC}
pkgrel=2
pkgdesc="PHP7 MongoDB driver"
url="http://pecl.php.net/package/mongodb"
arch="x86_64 armhf"
license="PHP"
depends="php7-json"
makedepends="libressl-dev pcre-dev php7-dev autoconf"
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
options="!check" # tests requires additional dependencies (vagrant)
builddir="$srcdir"/$_pkgreal-$_pkgver
build() {
cd "$builddir"
phpize7
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config7
make
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir/" install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
sha512sums="ee40c76194ff47407eb14aa7677fe090fe71fed953afd36b68661f7ab67315cb105b485a49f6b1d00a97c1829afb9a4f605463d8d310f7f9263bf90f4bba1bb6 mongodb-1.4.2.tgz"
|