Skip to content

Commit

Permalink
plasma.kde.org.eclass: Introduce KDE_CATV
Browse files Browse the repository at this point in the history
Holds main Plasma release number (major.minor.micro) for use on same-category
dependencies.

Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 12, 2024
1 parent 42a0234 commit e023b5c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions eclass/plasma.kde.org.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ esac
if [[ -z ${_PLASMA_KDE_ORG_ECLASS} ]]; then
_PLASMA_KDE_ORG_ECLASS=1

# @ECLASS_VARIABLE: KDE_CATV
# @DESCRIPTION:
# Holds main Plasma release number (major.minor.micro) for use on same-category
# dependencies.
KDE_CATV=$(ver_cut 1-3)
readonly KDE_CATV

# @ECLASS_VARIABLE: KDE_PV_UNRELEASED
# @INTERNAL
# @DESCRIPTION:
Expand Down Expand Up @@ -64,10 +71,10 @@ if [[ ${KDE_BUILD_TYPE} == live ]]; then
elif [[ -z ${KDE_ORG_COMMIT} ]]; then
case ${PV} in
5.??.[6-9][05]* | 6.?.[6-9][05]* )
_KDE_SRC_URI+="unstable/plasma/$(ver_cut 1-3)/"
_KDE_SRC_URI+="unstable/plasma/${KDE_CATV}/"
RESTRICT+=" mirror"
;;
*) _KDE_SRC_URI+="stable/plasma/$(ver_cut 1-3)/" ;;
*) _KDE_SRC_URI+="stable/plasma/${KDE_CATV}/" ;;
esac

SRC_URI="${_KDE_SRC_URI}${KDE_ORG_TAR_PN}-${PV}.tar.xz"
Expand Down

0 comments on commit e023b5c

Please sign in to comment.