# $Id: PKGBUILD 111217 2014-05-15 14:18:48Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Jonathan Wiersma # Contributor: Jonathan Wiersma # Contributor: sracker pkgname=xdebug pkgver=2.2.5 pkgrel=1 pkgdesc="PHP debugging extension" arch=('i686' 'x86_64') url="http://www.xdebug.org" license=('GPL') depends=('php') backup=('etc/php/conf.d/xdebug.ini') source=(http://www.xdebug.org/files/$pkgname-$pkgver.tgz xdebug.ini) md5sums=('7e571ce8eb6fa969fd8263969019849d' '6a1f2ef91c632d4c9b7b218cd2e278ef') build() { cd $srcdir/$pkgname-$pkgver phpize ./configure --prefix=/usr --enable-xdebug make cd debugclient ./configure --prefix=/usr make } package() { local PHPVER=`php -r 'echo phpversion();'` cd $srcdir/$pkgname-$pkgver/debugclient make DESTDIR=$pkgdir install cd $srcdir/$pkgname-$pkgver make INSTALL_ROOT=$pkgdir install install -D -m 644 $srcdir/xdebug.ini $pkgdir/etc/php/conf.d/xdebug.ini }