[arch-commits] Commit in php/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun May 8 19:22:46 UTC 2022


    Date: Sunday, May 8, 2022 @ 19:22:46
  Author: dvzrv
Revision: 444868

upgpkg: php 8.1.5-3: Rebuild to add php-interpreter virtual provides.

Add the virtual provides php-interpreter to php, which represents the major and
minor version of the php interpreter.

Modified:
  php/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-08 18:50:04 UTC (rev 444867)
+++ PKGBUILD	2022-05-08 19:22:46 UTC (rev 444868)
@@ -21,7 +21,7 @@
          'php-tidy'
          'php-xsl')
 pkgver=8.1.5
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 license=('PHP')
 url='https://www.php.net/'
@@ -29,6 +29,7 @@
              'postgresql-libs' 'sqlite' 'systemd' 'tidy' 'unixodbc' 'curl' 'libtool' 'postfix' 'freetds' 'pcre2' 'libnsl'
              'oniguruma')
 checkdepends=('procps-ng')
+options=(debug)
 source=("https://php.net/distributions/${pkgbase}-${pkgver}.tar.xz"{,.asc}
         'apache.patch' 'apache.conf' 'php-fpm.patch' 'php-fpm.tmpfiles' 'php.ini.patch')
 sha256sums=('7647734b4dcecd56b7e4bd0bc55e54322fa3518299abcdc68eb557a7464a2e8a'
@@ -40,6 +41,7 @@
             'b3b3385f1c36e272671c7db238b2a69896e11a82db90dafd74964f2eabbfa2f2')
 validpgpkeys=('F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD'
               '39B641343D8C104B2B146DC3F9C39DC0B9698544')
+_interpreter=${pkgver%.*}
 
 prepare() {
 	cd "${srcdir}/${pkgbase}-${pkgver}"
@@ -180,7 +182,7 @@
 	depends=('libxml2' 'curl' 'libzip' 'pcre2' 'argon2' 'oniguruma' 'db' 'gdbm')
 	replaces=('php-ldap')
 	conflicts=('php-ldap')
-	provides=("php-ldap=${pkgver}")
+	provides=("php-interpreter=$_interpreter" "php-ldap=${pkgver}")
 	backup=('etc/php/php.ini')
 
 	cd "${srcdir}/build"



More information about the arch-commits mailing list