Package Details: php74-xdebug 3.1.6-1

Git Clone URL: https://aur.archlinux.org/php74-xdebug.git (read-only, click to copy)
Package Base: php74-xdebug
Description: php74 Xdebug extension
Upstream URL: https://xdebug.org/
Licenses: Xdebug
Submitter: tompear
Maintainer: el_aur
Last Packager: el_aur
Votes: 0
Popularity: 0.000000
First Submitted: 2021-01-31 12:13 (UTC)
Last Updated: 2024-04-18 18:20 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

taiwbi commented on 2024-04-08 06:38 (UTC)

This PKGBUILD worked for me:

ext_name=xdebug
phpbase=74
suffix=
pkgname="php${phpbase}-${ext_name}${suffix}"
pkgver=3.1.6
source=("http://pecl.php.net/get/$ext_name-$pkgver.tgz")
pkgrel=0
pkgdesc="php${phpbase}${suffix} Xdebug extension"
arch=("x86_64" "i686")
url="https://xdebug.org/"
license=('Xdebug')
makedepends=("php${phpbase}${suffix}")

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"
    install -m0755 -d "${pkgdir}/${_ini_dir}"
    echo "zend_extension=${ext_name}.so" > "${pkgdir}/${_ini_file}"
    chmod 0644 "${pkgdir}/${_ini_file}"
    install -Dm0755 "modules/${ext_name}.so" "${pkgdir}/${ext_dir}/${ext_name}.so"
}

sha256sums=('554eca0b4d5b7b93cb2258fab0b0bd84cc8721e74322a2255c14e137cbcad5d2')

I also was giving an error that backup can't be empty so I just removed it for myself, I guess it should be added in other way at the header.

el_aur commented on 2023-02-22 15:56 (UTC)

New version. Compatible with php74 AUR package