# $Id: PKGBUILD 88795 2013-04-22 10:32:02Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Jonathan Wiersma # Contributor: Jonathan Wiersma # Contributor: sracker pkgname=xdebug pkgver=2.2.2 pkgrel=2 pkgdesc="PHP debugging extension" arch=('i686' 'x86_64' 'mips64el') url="http://www.xdebug.org" license=('GPL') depends=('php') install="${pkgname}.install" backup=('etc/php/conf.d/xdebug.ini') source=(http://www.xdebug.org/files/$pkgname-$pkgver.tgz xdebug-5.2.ini xdebug.ini) md5sums=('5687bca6270b9668721090d780c7c966' '6b7fdbbe0bf381bda40e77e29981f439' '68de800943369d4c76bdf7eb35c8463b') build() { cd $srcdir/$pkgname-$pkgver phpize ./configure --prefix=/usr --enable-xdebug make cd debugclient ./configure --prefix=/usr --build=$CHOST make } package() { local PHPVER=`php -r 'echo phpversion();'` cd $srcdir/$pkgname-$pkgver/debugclient make DESTDIR=$pkgdir install cd $srcdir/$pkgname-$pkgver if [ "$PHPVER" \< "5.3.0" ] ; then install -D -m 744 modules/xdebug.so $pkgdir/usr/lib/php/modules/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 }