desktop/xdebug/PKGBUILD
2016-12-05 00:31:34 +00:00

46 lines
1.4 KiB
Bash

pkgname=xdebug
pkgver=2.5.0
pkgrel=1
pkgdesc="PHP debugging extension"
arch=('x86_64')
url="http://www.xdebug.org"
license=('GPL')
depends=('php' 're2c')
install="${pkgname}.install"
backup=('etc/php/conf.d/xdebug.ini')
categories=('programming')
source=(http://www.xdebug.org/files/$pkgname-$pkgver.tgz
xdebug-5.2.ini
xdebug.ini)
sha512sums=('75b1dbf32059eebb6ea3fb6ebb50ab26d73f8ce2964be1fec41ecfd9ae3d8bd55b6997daf03727b28b91ba06d08734865158bed6f038a46f00a1da5424ce5fe6'
'0105a26a653b7c1dfc63df73a2d3e4cb14683b079f915fc41c24d123436a546980c0d82e14040c0bc82919edf7fdda59db67873afb26209635f114c66db6b074'
'3b667dd97486df407662b80dfbef2a69a4eba964161ee9831556b9fa87823fa235323a5a3663fdfb08f649a9d98a5b5cae3de514f68a340158285abb4b50a4d4')
build() {
local PHPVER=`php -r 'echo phpversion();'`
cd $srcdir/$pkgname-$pkgver
phpize
./configure --prefix=/usr --enable-xdebug
make
cd debugclient
./configure --prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver/debugclient
make DESTDIR=$pkgdir install
cd $srcdir/$pkgname-$pkgver
make INSTALL_ROOT=$pkgdir install
if [ "$PHPVER" \< "5.3.0" ] ; then
install -D -m 744 modules/xdebug.so $pkgdir/usr/lib/php/xdebug.so
install -D -m 644 $srcdir/xdebug-5.2.ini $pkgdir/etc/php/conf.d/xdebug.ini
else
install -D -m 744 modules/xdebug.so $pkgdir/usr/lib/php/modules/xdebug.so
install -D -m 644 $srcdir/xdebug.ini $pkgdir/etc/php/conf.d/xdebug.ini
fi
}