Commit e1190b4c authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php81-phalcon: modernize

parent affd0774
......@@ -8,35 +8,37 @@ pkgdesc="High performance, full-stack PHP 8.1 framework delivered as a C extensi
url="https://phalcon.io/"
arch="all"
license="BSD-3-Clause"
_phpv=81
_php=php$_phpv
depends="
php81-curl
php81-fileinfo
php81-gettext
php81-mbstring
php81-openssl
php81-pdo
php81-session
php81-pecl-psr
$_php-curl
$_php-fileinfo
$_php-gettext
$_php-mbstring
$_php-openssl
$_php-pdo
$_php-session
$_php-pecl-psr
"
makedepends="php81-dev"
makedepends="$_php-dev"
source="php-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize81
./configure --prefix=/usr --with-php-config=/usr/bin/php-config81
phpize$_phpv
./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
make
}
check() {
# no tests provided
php81 -d extension=modules/$_extname.so --ri $_extname
$_php -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php81/conf.d
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment