mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-08 17:32:23 +01:00
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php8-pecl-xdebug
|
|
_extname=xdebug
|
|
pkgver=3.0.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 8 extension that provides functions for function traces and profiling - PECL"
|
|
url="https://pecl.php.net/package/xdebug"
|
|
arch="all"
|
|
license="PHP-3.0"
|
|
depends="php8-common"
|
|
makedepends="php8-dev"
|
|
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
|
|
build() {
|
|
phpize8
|
|
./configure --prefix=/usr --with-php-config=php-config8
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# PECL package has no test suite.
|
|
php8 -d zend_extension="$builddir"/modules/xdebug.so -r 'xdebug_info();'
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local _confdir="$pkgdir"/etc/php8/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/php8/xdebug/ contrib/tracefile-analyser.php
|
|
install -D -m644 -t "$pkgdir"/usr/share/vim/vimfiles/syntax/ contrib/xt.vim
|
|
}
|
|
|
|
sha512sums="d8eff1b611558c4a7f369f1ea729e6ea3864253592d8cfd0f6195a1ca7a7dbb0ff0f44ccb13caf92ff1bfc4082dbbe0226b8a75fc573f1bbae65db9dcb416f58 php8-pecl-xdebug-3.0.0.tgz"
|