# Contributor: Andy Postnikov # Contributor: Valery Kartel # Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php81-pecl-xdebug _extname=xdebug pkgver=3.2.2 pkgrel=0 pkgdesc="PHP 8.1 extension that provides functions for function traces and profiling - PECL" url="https://pecl.php.net/package/xdebug" arch="all" license="PHP-3.0" _phpv=81 _php=php$_phpv depends="$_php-common" makedepends="$_php-dev linux-headers" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver" provides="$_php-xdebug=$pkgver-r$pkgrel" # for backward compatibility replaces="$_php-xdebug" # for backward compatibility install_if="php-$_extname php$_phpv" build() { phpize$_phpv ./configure --prefix=/usr --with-php-config=php-config$_phpv make } check() { # PECL package has no test suite. $_php -d zend_extension="$builddir"/modules/xdebug.so -r 'xdebug_info();' } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d mkdir -p $_confdir # should go after opcache cat > $_confdir/50_$_extname.ini <<-EOF ; Uncomment and configure mode https://xdebug.org/docs/all_settings#xdebug.mode ;zend_extension=$_extname.so ;xdebug.mode=off EOF install -D -m644 -t "$pkgdir"/usr/share/$_php/xdebug/ contrib/tracefile-analyser.php install -D -m644 -t "$pkgdir"/usr/share/vim/vimfiles/syntax/ contrib/xt.vim } sha512sums=" 8bcc6b2530992274e61aa71b985598c7a1d425c6661224daff6142bd82e2beb30d0a596c3d7a88f38eccf2550b376b874b928b8523be178d0d2f107b116a6370 php-pecl-xdebug-3.2.2.tgz "