summaryrefslogtreecommitdiff
path: root/community/xdebug/PKGBUILD
blob: 0c25492a46768012ac8b6765f6935087be9e3b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 68086 2012-03-17 18:57:19Z 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.4
pkgrel=1
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=('0a1339ad8053eface15ed6420a295939'
         '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
  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/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
}