diff options
Diffstat (limited to 'community/xdebug/PKGBUILD')
-rw-r--r-- | community/xdebug/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/xdebug/PKGBUILD b/community/xdebug/PKGBUILD new file mode 100644 index 000000000..942ee4a41 --- /dev/null +++ b/community/xdebug/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 43879 2011-03-30 18:59:05Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Jonathan Wiersma <arch aur at jonw dot org> +# Contributor: Jonathan Wiersma <arch aur at jonw dot org> +# Contributor: sracker <smb.sac@gmail.com> + +pkgname=xdebug +pkgver=2.1.1 +pkgrel=1 +pkgdesc="PHP debugging extension" +arch=('i686' 'x86_64') +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=('fcdf078e715f44b77f13bac721ad63ce' + '6b7fdbbe0bf381bda40e77e29981f439' + '68de800943369d4c76bdf7eb35c8463b') + +build() { + local PHPVER=$(php -r 'echo phpversion();') + + cd $srcdir/$pkgname-$pkgver || return 1 + phpize || return 1 + ./configure --prefix=/usr --enable-xdebug || return 1 + make || return 1 + + cd debugclient || return 1 + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR=$pkgdir install || return 1 + + cd $srcdir/$pkgname-$pkgver || return 1 + if [ "$PHPVER" \< "5.3.0" ] ; then + install -D -m 744 modules/xdebug.so $pkgdir/usr/lib/php/xdebug.so || return 1 + install -D -m 644 $srcdir/xdebug-5.2.ini $pkgdir/etc/php/conf.d/xdebug.ini || return 1 + else + install -D -m 744 modules/xdebug.so $pkgdir/usr/lib/php/modules/xdebug.so || return 1 + install -D -m 644 $srcdir/xdebug.ini $pkgdir/etc/php/conf.d/xdebug.ini || return 1 + fi +} |