# Contributor: Andy Postnikov # Contributor: MPThLee # Maintainer: MPThLee pkgname=php81-pecl-luasandbox _extname=LuaSandbox pkgver=4.1.1 pkgrel=0 pkgdesc="LuaSandbox PHP 8.1 extension - PECL" url="https://pecl.php.net/package/LuaSandbox" arch="all" license="MIT" _phpv=81 _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=" 403b2b87dc410a5a05d7eb99b6d3919a1578a627c3b5291f55b4e50d70e76f9f31e2f962b18f3f81c9a150ea1fe3bf7529cdd1719b6b3abf781d1abeb1ec4404 php-pecl-LuaSandbox-4.1.1.tgz "