blob: 72e73478ee18b73a1a526c192280bf5b8c722ccf (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mongodb
_pkgreal=mongodb
pkgver=1.1.4
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP7 MongoDB driver"
url="http://pecl.php.net/package/mongodb"
arch="x86_64 armhf"
license="PHP"
depends="openssl-dev"
pecldepends="php7-dev autoconf"
makedepends="$pecldepends"
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="065b4472562d64e300f6c08442865df2 mongodb-1.1.4.tgz"
sha256sums="c6aee3b480d2e53b95ce9f4838c08d3f19722fccdb68c57ca11869cad4c3ff8a mongodb-1.1.4.tgz"
sha512sums="ccf14a880244c24cbab3c339f73c8e521c3d3974d07aca992dd45b4c0a548da384ca82b17aceb9a634ac74b9b8c2d2f8b386488472b4ee9ee419d299faf97488 mongodb-1.1.4.tgz"
|