Skip to content
Snippets Groups Projects
Commit 2de8ed5a authored by Andy Postnikov's avatar Andy Postnikov Committed by Jakub Jirutka
Browse files

testing/php7-mongodb: modernize

parent 2e336610
No related merge requests found
......@@ -19,17 +19,16 @@ options="!check" # tests requires additional dependencies (vagrant)
_builddir="$srcdir"/$_pkgreal-$_pkgver
build() {
cd "$_builddir"
phpize7 || return 1
phpize7
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config7 \
|| return 1
make || return 1
--with-php-config=/usr/bin/php-config7
make
}
package() {
cd "$_builddir"
make INSTALL_ROOT="$pkgdir/" install || return 1
install -d "$pkgdir"/etc/php7/conf.d || return 1
make INSTALL_ROOT="$pkgdir/" install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment