blob: 9e5fef9657804b4123ee21ae2a33320eed7543c0 (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mongodb
_pkgreal=mongodb
pkgver=1.5.2
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP7 MongoDB driver"
url="https://pecl.php.net/package/mongodb"
arch="all"
license="PHP"
depends="php7-json"
makedepends="libressl-dev pcre-dev php7-dev autoconf"
source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz
libressl-273.patch"
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="189fb18cb36873dbbcd5803c1ccc37d5ecaf9412e76051bcebf1a492a40c13cfa518df5e45c4c57781eb79ab512c9403c54344a7593d89571a3965cd327ac15a mongodb-1.5.2.tgz
32ec5d5d041c438e6d09a34334ee25cde4ccda342758812e9dd67d01da0430150eac5cb8a74d26a0abcbc9c418f21a460d5469707e96d0276d0804bbe59d2494 libressl-273.patch"
|