summaryrefslogtreecommitdiff
path: root/community/xdebug
diff options
context:
space:
mode:
Diffstat (limited to 'community/xdebug')
-rw-r--r--community/xdebug/PKGBUILD41
-rw-r--r--community/xdebug/xdebug.ini5
2 files changed, 46 insertions, 0 deletions
diff --git a/community/xdebug/PKGBUILD b/community/xdebug/PKGBUILD
new file mode 100644
index 000000000..34050cc83
--- /dev/null
+++ b/community/xdebug/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 94986 2013-08-02 13:00:08Z 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.2.3
+pkgrel=2
+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=('e49cec9861b45dc0b36eae33bf8a14fa'
+ '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
+}
diff --git a/community/xdebug/xdebug.ini b/community/xdebug/xdebug.ini
new file mode 100644
index 000000000..9062dfc8b
--- /dev/null
+++ b/community/xdebug/xdebug.ini
@@ -0,0 +1,5 @@
+;zend_extension=/usr/lib/php/modules/xdebug.so
+;xdebug.remote_enable=on
+;xdebug.remote_host=127.0.0.1
+;xdebug.remote_port=9000
+;xdebug.remote_handler=dbgp