blob: 2ff427380f9b0feac3f7d70eafb40d79f22d706c (
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
46
47
48
49
|
pkgname=php56-xdebug
_pkgbase="${pkgname#php56-}"
pkgver=2.5.5
_pkgver="$(echo "${pkgver}" | tr '[:lower:]' '[:upper:]')"
pkgrel=2
pkgdesc="php56 debugging extension"
arch=('x86_64')
url="http://www.xdebug.org"
license=('GPL')
depends=('php56>=5.6.17-3')
options=('!makeflags')
backup=('etc/php56/conf.d/xdebug.ini')
source=("https://www.xdebug.org/files/${_pkgbase}-${pkgver}.tgz"
"xdebug.ini")
sha512sums=('9faab421bd90c03734c047d8c6dcc021c8bc665eb36781c692f194d04c7dca24fe1eb920ca8dc407e5bf4ae0912c4b917587f940f34b07171a8881d4cf8695d1'
'738e6939a129a557d307a1659dfdfb0a0ded783b31c6c9a85f18cfa380a13afef4386cccce5a9ad3e1afcc66a2dedbebf29fa96d91f618a76af4a4d9e504f74e')
build() {
cd "${srcdir}/${_pkgbase}-${_pkgver}"
phpize56
./configure \
--config-cache \
--sysconfdir=/etc/php56 \
--with-php-config=/usr/bin/php-config56 \
--localstatedir=/var
make
cd "${srcdir}/${_pkgbase}-${_pkgver}/debugclient"
./buildconf
./configure \
--config-cache \
--sysconfdir=/etc/php56 \
--with-php-config=/usr/bin/php-config56 \
--localstatedir=/var
make
}
check() {
cd "${srcdir}/${_pkgbase}-${_pkgver}"
make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
}
package() {
cd "${srcdir}/${_pkgbase}-${_pkgver}"
make INSTALL_ROOT="$pkgdir" install
install -D -m644 "${srcdir}/xdebug.ini" "${pkgdir}/etc/php56/conf.d/xdebug.ini"
install -D -m755 "./debugclient/debugclient" "${pkgdir}/usr/bin/debugclient56"
}
|