diff options
author | Eugene Lamskoy | 2023-02-22 17:45:38 +0200 |
---|---|---|
committer | Eugene Lamskoy | 2023-02-22 17:45:38 +0200 |
commit | af6e719a39341a5c59f9076dde0bbf57054d097a (patch) | |
tree | 8fd794c1d7ea2f63002684497eb6173cd742423d /PKGBUILD | |
parent | 10af7591d158c8d0d6d1cc14ad62bb123763ed35 (diff) | |
download | aur-php73-xdebug.tar.gz |
3.1.5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 28 insertions, 18 deletions
@@ -1,27 +1,37 @@ -# Maintainer: Tomasz Gruszka <tompear79@gmail.com> -pkgname=php73-xdebug -pkgver=3.0.4 +ext_name=xdebug +phpbase=73 +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 debugging extension" -arch=("x86_64") +pkgdesc="php${phpbase}${suffix} Xdebug extension" +arch=("x86_64" "i686") url="https://xdebug.org/" license=('Xdebug') -depends=("php73") -source=("https://xdebug.org/files/xdebug-${pkgver}.tgz" - "xdebug.ini") -sha256sums=('b27290491f4634b0cd3badfc3a2be98fb1e3c0c3710a706724d8b195baad72af' - '7c66883dc2ade69069ef84e30188b25630748aa9c8b0dd123727c00505421205') -backup=("etc/php73/conf.d/xdebug.ini") +makedepends=("php${phpbase}${suffix}") +backup=() build() { - cd "${srcdir}/xdebug-${pkgver}" - phpize73 - ./configure --prefix=/usr --enable-xdebug - make + cd "${ext_name}-${pkgver}" + phpize${phpbase}${suffix} + ./configure \ + --with-php-config=php-config${phpbase}${suffix} + make } package() { - cd "${srcdir}/xdebug-${pkgver}" - make INSTALL_ROOT="$pkgdir" install - install -D -m 644 "$srcdir"/xdebug.ini "$pkgdir"/etc/php73/conf.d/xdebug.ini + 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') + |