blob: 5993c77e1db51b1d71c85b5d9a945c34335983c6 (
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
38
39
40
41
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-mongodb
_pkgreal=mongodb
pkgver=1.7.1
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP7 MongoDB driver"
url="https://pecl.php.net/package/mongodb"
arch="all"
license="Apache-2.0"
depends="php7-json"
makedepends="cyrus-sasl-dev icu-dev openssl-dev pcre-dev php7-dev re2c snappy-dev"
source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz
fix-ssl.patch"
builddir="$srcdir"/$_pkgreal-$_pkgver
provides="php7-mongodb=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-mongodb" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config7
make
}
check() {
# tests requires additional dependencies (vagrant)
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}
package() {
make INSTALL_ROOT="$pkgdir/" install
local confdir="$pkgdir/etc/php7/conf.d"
install -d $confdir
echo "extension=$_pkgreal.so" > $confdir/$_pkgreal.ini
}
sha512sums="c40dcde291e85e61ee7b299d2e160c1118e184686771f8f9acbfbfb5a0ffac019287bc6ba8e06a24ed93d843b947816230c50bc06d74a7dfc56bc7244ef83ba9 mongodb-1.7.1.tgz
042316b14cea5aad842cfb5efaeef88af6dac379bc82140701336094d1c05220feabd5997fe16886fd221cd450127ec7f89fdd7d906aabae955eedc2d08f0506 fix-ssl.patch"
|