# Copyright 2020 Maxime Sorin # Distributed under the terms of the GNU General Public License v2 require php-pecl [ module=module php_abis=[ 5.6 7.0 7.1 7.2 7.3 7.4 8.0 ] ] SUMMARY="Sqreen Agent for PHP" HOMEPAGE="https://www.sqreen.com/" DOWNLOADS="https://s3-eu-west-1.amazonaws.com/${PN}-download-public/php/${PN}-php-extension/linux/${PN}-php-extension-${PV}-linux.tar.gz -> ${PNV}.tar.gz" LICENCES="all-rights-reserved" SLOT="0" PLATFORMS="~amd64" MYOPTIONS="" DEPENDENCIES=" run: sys-analyzer/sqreen-agent " unpack_prepare_one_multibuild() { # The files are at the root of the archive, just create the missing PNV folder. edo mkdir -p "${WORKBASE}/${MULTIBUILD_CLASS}/${MULTIBUILD_TARGET}/${PNV}" easy_multibuild_work=${PNV} } php-pecl_prepare_one_multibuild() { : } php-pecl_configure_one_multibuild() { : } php-pecl_install_one_multibuild() { local abi=$(php-pecl_get_abi) extensionDir=$(php-config-${abi} --extension-dir) exeinto ${extensionDir} newexe ${abi}/${PN}.so ${PN}.so insinto /etc/php-${abi} newins conf/${PN}.ini ${PN}.ini }