blob: 6bee57e9e7f4cbcd85820fc02e25972d08a974ae (
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.1
_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="433f0722c3370e44296e61f376ffa935b8b4d52f368036b203fc436147d7fd847e4b617afa58f9498a93f85701c155c245c0acbd3a04d9cbdc0e3228057c0420 mongodb-1.5.1.tgz
32ec5d5d041c438e6d09a34334ee25cde4ccda342758812e9dd67d01da0430150eac5cb8a74d26a0abcbc9c418f21a460d5469707e96d0276d0804bbe59d2494 libressl-273.patch"
|