# Maintainer: Andy Postnikov pkgname=php83-pecl-phpy _extname=phpy pkgver=1.0.11 pkgrel=1 pkgdesc="Extension allows PHP 8.3 to directly use Python modules and functions without RPC - PECL" url="https://pecl.php.net/package/phpy" arch="all" license="Apache-2.0" _phpv=83 _php=php$_phpv depends="$_php-common" makedepends="$_php-dev python3-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() { $_php -d extension="$builddir"/modules/$_extname.so --ri $_extname } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d mkdir -p $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" b879d0d50f6d069f6f106f127c32a31ab8e8f495bb9c0767e44bcaae74854f976e601630018d51578df9f0e4b2f0cd4c5c654d258523844eb1f98887c6e2b081 php-pecl-phpy-1.0.11.tgz "