mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 19:01:25 +02:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# 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"
|