desktop/xdebug/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

2011-09-08 01:54:27 +08:00
pkgname=xdebug
2015-06-22 23:42:18 +08:00
pkgver=2.3.3
2011-09-08 01:54:27 +08:00
pkgrel=1
pkgdesc="PHP debugging extension"
2014-01-02 06:52:33 +08:00
arch=('x86_64')
2011-09-08 01:54:27 +08:00
url="http://www.xdebug.org"
license=('GPL')
depends=('php')
2014-03-06 20:09:36 +08:00
makedepends=('php-curl')
2011-09-08 01:54:27 +08:00
install="${pkgname}.install"
backup=('etc/php/conf.d/xdebug.ini')
categories=('programming')
2011-09-08 01:54:27 +08:00
source=(http://www.xdebug.org/files/$pkgname-$pkgver.tgz
xdebug-5.2.ini
xdebug.ini)
2015-06-22 23:42:18 +08:00
sha512sums=('212604e87caa67b3734befa0f57580532b0edd346ed871bbaba72ba8319ba60eb8d66649cb5716df250f28ef1cd2384ccc6f651b90ab4936dbcb45ef6c5f7438'
'0105a26a653b7c1dfc63df73a2d3e4cb14683b079f915fc41c24d123436a546980c0d82e14040c0bc82919edf7fdda59db67873afb26209635f114c66db6b074'
'3b667dd97486df407662b80dfbef2a69a4eba964161ee9831556b9fa87823fa235323a5a3663fdfb08f649a9d98a5b5cae3de514f68a340158285abb4b50a4d4')
2011-09-08 01:54:27 +08:00
build() {
local PHPVER=`php -r 'echo phpversion();'`
cd $srcdir/$pkgname-$pkgver
phpize
./configure --prefix=/usr --enable-xdebug
make
cd debugclient
./configure --prefix=/usr
make
2014-03-06 20:09:36 +08:00
}
package() {
cd $srcdir/$pkgname-$pkgver/debugclient
2011-09-08 01:54:27 +08:00
make DESTDIR=$pkgdir install
cd $srcdir/$pkgname-$pkgver
2014-03-06 20:09:36 +08:00
make INSTALL_ROOT=$pkgdir install
2011-09-08 01:54:27 +08:00
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
}