desktop/xdebug/PKGBUILD

50 lines
1.3 KiB
Bash
Raw Normal View History

2014-03-06 20:09:36 +08:00
# Maintainer: Francesco Marinucci <franzmari[at]chakra-project[dot]it>
2012-05-16 01:46:58 +08:00
# maintainer abveritas@chakra-project.org
2011-09-08 01:54:27 +08:00
pkgname=xdebug
2015-01-16 18:20:50 +08:00
pkgver=2.2.6
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-01-16 18:20:50 +08:00
md5sums=('f216356861e27284580d0208060ea7fa'
2011-09-08 01:54:27 +08:00
'6b7fdbbe0bf381bda40e77e29981f439'
'68de800943369d4c76bdf7eb35c8463b')
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
}