# Contributor: Andy Postnikov # Contributor: MPThLee # Maintainer: MPThLee pkgname=php82-pecl-luasandbox _extname=LuaSandbox pkgver=4.1.0 pkgrel=0 pkgdesc="LuaSandbox PHP 8.2 extension - PECL" url="https://pecl.php.net/package/LuaSandbox" arch="all" license="MIT" _phpv=82 _php=php$_phpv _luaver="5.1" depends="$_php-common" makedepends="$_php-dev lua$_luaver-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir"/$_extname-$pkgver build() { phpize$_phpv ./configure --prefix=/usr --with-php-config=php-config$_phpv make } check() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff $_php -dextension=modules/luasandbox.so --ri luasandbox } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d install -d $_confdir echo "extension=luasandbox" > $_confdir/luasandbox.ini } sha512sums=" f6eccb2d3c05b35c29c349d2409c11f923bd557285a89b1b6c77279873de42c7fa5e1560a39ac64117e0ef9096dffa53e3e7c4148b31ef129646aac170522472 php-pecl-LuaSandbox-4.1.0.tgz "