1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/php82-pecl-luasandbox/APKBUILD
MPThLee cf3a2cb302 testing/php*-pecl-luasandbox: new aports
https://pecl.php.net/package/LuaSandbox
Lua interpreter with limits and safe environment
2022-12-02 12:11:30 +00:00

41 lines
1.1 KiB
Text

# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Contributor: MPThLee <mpthlee@gmail.com>
# Maintainer: MPThLee <mpthlee@gmail.com>
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
"