blob: 36af733b3dd87b3e16b137992ea1f767fdd06384 (
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
|
ext_name=xdebug
phpbase=74
suffix=
pkgname="php${phpbase}-${ext_name}${suffix}"
pkgver=3.1.5
source=("http://pecl.php.net/get/$ext_name-$pkgver.tgz")
pkgrel=1
pkgdesc="php${phpbase}${suffix} Xdebug extension"
arch=("x86_64" "i686")
url="https://xdebug.org/"
license=('Xdebug')
makedepends=("php${phpbase}${suffix}")
backup=()
build() {
cd "${ext_name}-${pkgver}"
phpize${phpbase}${suffix}
./configure \
--with-php-config=php-config${phpbase}${suffix}
make
}
package() {
cd "$ext_name-$pkgver"
_priority=40
ext_dir="$(php-config${phpbase}${suffix} --extension-dir)"
_ini_dir="/etc/php${phpbase}${suffix}/conf.d"
_ini_file="${_ini_dir}/${_priority}-${ext_name}.ini"
backup+=("${_ini_file}")
install -m0755 -d "${pkgdir}/${_ini_dir}"
echo "zend_extension=${ext_name}.so" > "${pkgdir}/${_ini_file}"
chmod 0644 "${pkgdir}/${_ini_file}"
install -m0755 -D ".libs/${ext_name}.so" "${pkgdir}/${ext_dir}/${ext_name}.so"
}
sha256sums=('55f6ef381245da079b2fc5ce1cfbcb7961197d0c0e04f9d977613cf9aa969a79')
|