From 3d38ed46b341dcecb7bb7b13462c3449857787d5 Mon Sep 17 00:00:00 2001
From: Andy Postnikov <apostnikov@gmail.com>
Date: Thu, 28 Jul 2022 17:09:32 +0200
Subject: [PATCH] community/{php8,php81}: update provider priority

also set 0 to testing/php7 as it also provides some packages and fix comments
---
 community/php8/APKBUILD  | 8 ++++----
 community/php81/APKBUILD | 8 ++++----
 testing/php7/APKBUILD    | 4 +++-
 testing/php82/APKBUILD   | 2 +-
 4 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/community/php8/APKBUILD b/community/php8/APKBUILD
index efd643a575a0..a1e17d860c6a 100644
--- a/community/php8/APKBUILD
+++ b/community/php8/APKBUILD
@@ -26,14 +26,14 @@
 pkgname=php8
 _pkgreal=php
 pkgver=8.0.21
-pkgrel=2
+pkgrel=3
 _apiver=20200930
 _suffix=${pkgname#php}
 # Is this package the default (latest) PHP version?
-_default_php="yes"
+_default_php="no"
 provides="$pkgname-cli php-cli php"  # for backward compatibility
-# priority of community/php81 is 50
-provider_priority=100
+# priority of community/php81 is 100
+provider_priority=50
 pkgdesc="The PHP$_suffix language runtime engine"
 url="https://www.php.net/"
 arch="all"
diff --git a/community/php81/APKBUILD b/community/php81/APKBUILD
index cd0d25d77541..455528eacf00 100644
--- a/community/php81/APKBUILD
+++ b/community/php81/APKBUILD
@@ -26,14 +26,14 @@
 pkgname=php81
 _pkgreal=php
 pkgver=8.1.8
-pkgrel=2
+pkgrel=3
 _apiver=20210902
 _suffix=${pkgname#php}
 # Is this package the default (latest) PHP version?
-_default_php="no"
+_default_php="yes"
 provides="$pkgname-cli php-cli php"  # for backward compatibility
-# priority of community/php8 is 100
-provider_priority=50
+# priority of community/php8 is 50
+provider_priority=100
 pkgdesc="The PHP$_suffix language runtime engine"
 url="https://www.php.net/"
 arch="all"
diff --git a/testing/php7/APKBUILD b/testing/php7/APKBUILD
index d646fe9169cf..ffc229b27d71 100644
--- a/testing/php7/APKBUILD
+++ b/testing/php7/APKBUILD
@@ -26,12 +26,14 @@
 pkgname=php7
 _pkgreal=php
 pkgver=7.4.30
-pkgrel=0
+pkgrel=1
 _apiver=20190902
 _suffix=${pkgname#php}
 # Is this package the default (latest) PHP version?
 _default_php="no"
 pkgdesc="The PHP$_suffix language runtime engine"
+# priority of community/php81 is 100
+provider_priority=0
 url="https://www.php.net/"
 arch="all"
 license="PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0"
diff --git a/testing/php82/APKBUILD b/testing/php82/APKBUILD
index 06f4ad5eb8e9..8ebad51362a9 100644
--- a/testing/php82/APKBUILD
+++ b/testing/php82/APKBUILD
@@ -33,7 +33,7 @@ _suffix=${pkgname#php}
 # Is this package the default (latest) PHP version?
 _default_php="no"
 provides="$pkgname-cli php-cli php"  # for backward compatibility
-# priority of community/php8 is 100
+# priority of community/php81 is 100
 provider_priority=1
 pkgdesc="The PHP$_suffix language runtime engine"
 url="https://www.php.net/"
-- 
GitLab