# Maintainer: Andy Postnikov pkgname=php82-pecl-opentelemetry _extname=opentelemetry pkgver=1.0.0_beta6 _pkgver=${pkgver/_/} pkgrel=1 pkgdesc="PHP 8.2 extension for OpenTelemetry auto-instrumentation support - PECL" url="https://pecl.php.net/package/opentelemetry" arch="all" license="Apache-2.0" _phpv=82 _php=php$_phpv depends="$_php-common" makedepends="$_php-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 make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d mkdir -p $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 3bbfb1aa3fda1494756e9f56d08a1d9df8b04f867ed54b37620a463232fbd113ae2b39943aa0f548ce3ebe0319176ed81acd13e01a271a3c53391cb93b2c859a php-pecl-opentelemetry-1.0.0_beta6.tgz "