mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=xdebug
|
|
pkgver=2.2.0
|
|
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')
|
|
categories=('programming')
|
|
source=(http://www.xdebug.org/files/$pkgname-$pkgver.tgz
|
|
xdebug-5.2.ini
|
|
xdebug.ini)
|
|
md5sums=('27d8ad8224ffab04d12eecb5997a4f5d'
|
|
'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
|
|
}
|