1 ################################################################################
3 # kde.org.cygclass - sets SRC_URI for kde.org packages
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****h* Cygclasses/kde.org.cygclass
28 # This cygclass is to be used for packages which are part of KDE
29 # or which are hosted on KDE FTP or Git servers.
31 # In most cases, you do not need to directly inherit this cygclass;
32 # most KDE packages will anyway use one of the cygclasses listed below
33 # which already inherit this cygclass.
35 # If PN does not match the name of the original source tarball,
36 # define ORIG_PN before inherit()ing.
38 # kde3.cygclass, kde4.cygclass, kf5.cygclass
43 #****o* kde.org.cygclass/HOMEPAGE (kde.org)
45 HOMEPAGE="https://kde.org/"
48 #****o* kde.org.cygclass/SRC_URI (kde.org)
50 # Download location for the release tarball.
53 *.*.[56789]?) _stable="unstable" ;;
54 *) _stable="stable" ;;
58 SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.bz2"
61 SRC_URI="mirror://kde/${_stable}/${PN}/${PV}/src/${P}.tar.bz2"
64 SRC_URI="mirror://kde/Attic/3.${VERSION#*.}/src/arts-${PV}.tar.bz2"
66 kdevplatform:1.*|kdevelop:4.*|kdevelop-*:1.*)
67 SRC_URI="mirror://kde/${_stable}/kdevelop/4.${PV[2]}.${PV[3]}/src/${P}.tar.bz2"
69 calligra:2.*|koffice:2.*)
70 SRC_URI="mirror://kde/Attic/${PN}-${PV}/${P}.tar.bz2"
73 SRC_URI="mirror://kde/stable/phonon/${PV}/src/${P}.tar.xz"
75 phonon-backend-gstreamer:4.*)
76 SRC_URI="mirror://kde/stable/phonon/${PN}/${PV}/src/${P}.tar.xz"
78 phonon-backend-vlc:0.*)
79 SRC_URI="mirror://kde/stable/phonon/${PN}/${PV}/src/${P}.tar.xz"
82 SRC_URI="mirror://kde/Attic/${PV}/src/kde-i18n/${ORIG_PN:-${PN}}-${PV}.tar.bz2"
84 # setup cannot handle '@' in PN
85 kde-l10n-ca?valencia:4.*)
86 SRC_URI="mirror://kde/${_stable}/${PV}/src/kde-l10n/kde-l10n-ca@valencia-${PV}.tar.xz"
87 SRC_DIR="kde-l10n-ca@valencia-${PV}"
89 kde-l10n-ca?valencia:[1-9][0-9].*)
90 SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/kde-l10n/kde-l10n-ca@valencia-${PV}.tar.xz"
91 SRC_DIR="kde-l10n-ca@valencia-${PV}"
94 SRC_URI="mirror://kde/${_stable}/${PV}/src/kde-l10n/${P}.tar.xz"
96 kde-l10n-*:[1-9][0-9].*)
97 SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/kde-l10n/${P}.tar.xz"
99 # setup cannot handle '@' in PN
100 calligra-l10n-ca?valencia:2.*|koffice-l10n-ca?valencia:2.*)
101 SRC_URI="mirror://kde/Attic/${PN%%-*}-${PV}/${PN%%-*}-l10n/${PN%%-*}-l10n-ca@valencia-${PV}.tar.bz2"
102 SRC_DIR="${PN%%-*}-l10n-ca@valencia-${PV}"
104 calligra-l10n-*:2.*|koffice-l10n-*:2.*)
105 SRC_URI="mirror://kde/Attic/${PN%-l10n*}-${PV}/${PN%-l10n*}-l10n/${P}.tar.bz2"
107 kf5-*:5.*|breeze-icons*|oxygen-icons*)
108 SRC_URI="mirror://kde/${_stable}/frameworks/${VERSION%\.*}/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
109 SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
111 kf5-*:19.12.*|kf5-*:[2-9][0-9].*)
112 SRC_URI="mirror://kde/${_stable}/release-service/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
113 SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
116 SRC_URI="mirror://kde/${_stable}/applications/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
117 SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
120 SRC_URI="mirror://kde/Attic/applications/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
121 SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
124 SRC_URI="mirror://kde/Attic/${VERSION}/src/${ORIG_PN:-${PN%3}}-${PV}.tar.bz2"
125 SRC_DIR="${ORIG_PN:-${PN%3}}-${PV}"
128 SRC_URI="mirror://kde/${_stable}/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
131 SRC_URI="mirror://kde/Attic/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
134 SRC_URI="mirror://kde/${_stable}/plasma/${PV}/${ORIG_PN:-${PN}}-${PV}.tar.xz"
136 *:19.12.*|*:[2-9][0-9].*)
137 SRC_URI="mirror://kde/${_stable}/release-service/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
140 SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
143 SRC_URI="mirror://kde/Attic/applications/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
150 #****o* kde.org.cygclass/SVN_URI (kde.org)
152 # svn.cygclass should be inherit()ed last for this to be of use.
154 SVN_URI="svn://anonsvn.kde.org/home/kde"
156 SVN_MODULE=${SVN_MODULE:-${ORIG_PN:-${PN}}}
161 #****o* kde.org.cygclass/GIT_URI (kde.org)
163 # git.cygclass should be inherit()ed last for this to be of use.
165 GIT_URI="git://anongit.kde.org/${ORIG_PN:-${PN}}"