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

David Runge dvzrv at gemini.archlinux.org
Sun Apr 24 17:45:47 UTC 2022


    Date: Sunday, April 24, 2022 @ 17:45:46
  Author: dvzrv
Revision: 443914

upgpkg: php7 7.4.29-3: Rebuild to add versioned provides.

Add versioned provides to all packages. Add provides to all module packages
that specify the interpreter major and minor version.
Add debug package.

Modified:
  php7/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-24 16:46:31 UTC (rev 443913)
+++ PKGBUILD	2022-04-24 17:45:46 UTC (rev 443914)
@@ -22,7 +22,7 @@
          'php7-tidy'
          'php7-xsl')
 pkgver=7.4.29
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 license=('PHP')
 url='https://www.php.net/'
@@ -30,6 +30,7 @@
              'postgresql-libs' 'sqlite' 'systemd' 'tidy' 'unixodbc' 'curl' 'libtool' 'postfix' 'freetds' 'pcre2' 'libnsl'
              'oniguruma')
 checkdepends=('procps-ng')
+options=(debug)
 source=("https://php.net/distributions/php-${pkgver}.tar.xz"{,.asc}
         'apache.patch' 'apache.conf' 'php-fpm.patch' 'php-fpm.tmpfiles' 'php.ini.patch'
         'enchant-2.patch' 'php7.patch')
@@ -44,6 +45,7 @@
             'f8c197fb657958016340db87de3e3427cc692cccc791e88c650362ed89bfd3be6180e430e5c446d19566b7e66225f9fa8cbed46a0909c87d6e046e65135d3031')
 validpgpkeys=('5A52880781F755608BF815FC910DEB46F53EA312'
               '42670A7FE4D0441C8E4632349E4FDC074A4EF02D')
+_interpreter=${pkgver%.*}
 
 prepare() {
 	cd "${srcdir}/php-${pkgver}"
@@ -191,6 +193,7 @@
 package_php7() {
 	pkgdesc='A general-purpose scripting language that is especially suited to web development'
 	depends=('libxml2' 'curl' 'libzip' 'pcre2' 'argon2' 'oniguruma')
+	provides=(php=$pkgver)
 	backup=('etc/php7/php.ini')
 
 	cd "${srcdir}/build"
@@ -209,6 +212,7 @@
 package_php7-cgi() {
 	pkgdesc='CGI and FCGI SAPI for PHP'
 	depends=('php7')
+	provides=(php-cgi=$pkgver php-cgi-interpreter=$_interpreter)
 
 	cd "${srcdir}/build"
 	make -j1 INSTALL_ROOT="${pkgdir}" install-cgi
@@ -217,6 +221,7 @@
 package_php7-apache() {
 	pkgdesc='Apache SAPI for PHP'
 	depends=('php7' 'apache' 'libnsl')
+	provides=(php-apache=$pkgver php-apache-interpreter=$_interpreter)
 	backup=('etc/httpd/conf/extra/php7_module.conf')
 
 	install -D -m755 "${srcdir}/build-apache/libs/libphp7.so" "${pkgdir}/usr/lib/httpd/modules/libphp7.so"
@@ -226,6 +231,7 @@
 package_php7-fpm() {
 	pkgdesc='FastCGI Process Manager for PHP'
 	depends=('php7' 'systemd')
+	provides=(php-fpm=$pkgver php-fpm-interpreter=$_interpreter)
 	backup=('etc/php7/php-fpm.conf' 'etc/php7/php-fpm.d/www.conf')
 	options=('!emptydirs')
 
@@ -238,6 +244,7 @@
 package_php7-embed() {
 	pkgdesc='Embedded PHP SAPI library'
 	depends=('php7' 'systemd-libs' 'libnsl' 'libxcrypt')
+	provides=(php-embed=$pkgver php-embed-interpreter=$_interpreter)
 	options=('!emptydirs')
 
 	cd "${srcdir}/build"
@@ -247,6 +254,7 @@
 package_php7-phpdbg() {
 	pkgdesc='Interactive PHP debugger'
 	depends=('php7')
+	provides=(php-phpdbg=$pkgver php-phpdbg-interpreter=$_interpreter)
 	options=('!emptydirs')
 
 	cd "${srcdir}/build-phpdbg"
@@ -256,6 +264,7 @@
 package_php7-dblib() {
 	pkgdesc='dblib module for PHP'
 	depends=('php7' 'freetds')
+	provides=(php-dblib=$pkgver php-dblib-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/pdo_dblib.so" "${pkgdir}/usr/lib/php7/modules/pdo_dblib.so"
 }
@@ -263,6 +272,7 @@
 package_php7-enchant() {
 	pkgdesc='enchant module for PHP'
 	depends=('php7' 'enchant')
+	provides=(php-enchant=$pkgver php-enchant-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/enchant.so" "${pkgdir}/usr/lib/php7/modules/enchant.so"
 }
@@ -270,6 +280,7 @@
 package_php7-gd() {
 	pkgdesc='gd module for PHP'
 	depends=('php7' 'gd')
+	provides=(php-gd=$pkgver php-gd-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/gd.so" "${pkgdir}/usr/lib/php7/modules/gd.so"
 }
@@ -277,6 +288,7 @@
 package_php7-imap() {
 	pkgdesc='imap module for PHP'
 	depends=('php7' 'c-client' 'libxcrypt')
+	provides=(php-imap=$pkgver php-imap-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/imap.so" "${pkgdir}/usr/lib/php7/modules/imap.so"
 }
@@ -284,6 +296,7 @@
 package_php7-intl() {
 	pkgdesc='intl module for PHP'
 	depends=('php7' 'icu')
+	provides=(php-intl=$pkgver php-intl-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/intl.so" "${pkgdir}/usr/lib/php7/modules/intl.so"
 }
@@ -291,7 +304,9 @@
 package_php7-sodium() {
 	pkgdesc='sodium module for PHP'
 	depends=('php7' 'libsodium')
+	provides=(php-sodium=$pkgver php-sodium-interpreter=$_interpreter)
 
+
 	install -D -m755 "${srcdir}/build/modules/sodium.so" "${pkgdir}/usr/lib/php7/modules/sodium.so"
 }
 
@@ -298,6 +313,7 @@
 package_php7-odbc() {
 	pkgdesc='ODBC modules for PHP'
 	depends=('php7' 'unixodbc')
+	provides=(php-odbc=$pkgver php-odbc-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/odbc.so" "${pkgdir}/usr/lib/php7/modules/odbc.so"
 	install -D -m755 "${srcdir}/build/modules/pdo_odbc.so" "${pkgdir}/usr/lib/php7/modules/pdo_odbc.so"
@@ -306,6 +322,7 @@
 package_php7-pgsql() {
 	pkgdesc='PostgreSQL modules for PHP'
 	depends=('php7' 'postgresql-libs')
+	provides=(php-pgsql=$pkgver php-pgsql-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/pgsql.so" "${pkgdir}/usr/lib/php7/modules/pgsql.so"
 	install -D -m755 "${srcdir}/build/modules/pdo_pgsql.so" "${pkgdir}/usr/lib/php7/modules/pdo_pgsql.so"
@@ -314,6 +331,7 @@
 package_php7-pspell() {
 	pkgdesc='pspell module for PHP'
 	depends=('php7' 'aspell')
+	provides=(php-pspell=$pkgver php-pspell-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/pspell.so" "${pkgdir}/usr/lib/php7/modules/pspell.so"
 }
@@ -321,6 +339,7 @@
 package_php7-snmp() {
 	pkgdesc='snmp module for PHP'
 	depends=('php7' 'net-snmp')
+	provides=(php-snmp=$pkgver php-snmp-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/snmp.so" "${pkgdir}/usr/lib/php7/modules/snmp.so"
 }
@@ -328,6 +347,7 @@
 package_php7-sqlite() {
 	pkgdesc='sqlite module for PHP'
 	depends=('php7' 'sqlite')
+	provides=(php-sqlite=$pkgver php-sqlite-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/sqlite3.so" "${pkgdir}/usr/lib/php7/modules/sqlite3.so"
 	install -D -m755 "${srcdir}/build/modules/pdo_sqlite.so" "${pkgdir}/usr/lib/php7/modules/pdo_sqlite.so"
@@ -336,6 +356,7 @@
 package_php7-tidy() {
 	pkgdesc='tidy module for PHP'
 	depends=('php7' 'tidy')
+	provides=(php-tidy=$pkgver php-tidy-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/tidy.so" "${pkgdir}/usr/lib/php7/modules/tidy.so"
 }
@@ -343,6 +364,7 @@
 package_php7-xsl() {
 	pkgdesc='xsl module for PHP'
 	depends=('php7' 'libxslt')
+	provides=(php-xsl=$pkgver php-xsl-interpreter=$_interpreter)
 
 	install -D -m755 "${srcdir}/build/modules/xsl.so" "${pkgdir}/usr/lib/php7/modules/xsl.so"
 }



More information about the arch-commits mailing list