-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathkde.org.cygclass
167 lines (162 loc) · 5.38 KB
/
kde.org.cygclass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
################################################################################
#
# kde.org.cygclass - sets SRC_URI for kde.org packages
#
# Part of cygport - Cygwin packaging application
# Copyright (C) 2006-2020 Cygport authors
# Provided by the Cygwin project <https://cygwin.com/>
#
# cygport is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# cygport is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with cygport. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
#****h* Cygclasses/kde.org.cygclass
# SYNOPSIS
# inherit kde.org
# DESCRIPTION
# This cygclass is to be used for packages which are part of KDE
# or which are hosted on KDE FTP or Git servers.
#
# In most cases, you do not need to directly inherit this cygclass;
# most KDE packages will anyway use one of the cygclasses listed below
# which already inherit this cygclass.
#
# If PN does not match the name of the original source tarball,
# define ORIG_PN before inherit()ing.
# INHERITED BY
# kde3.cygclass, kde4.cygclass, kf5.cygclass
# SEE ALSO
# mirror_kde
#****
#****o* kde.org.cygclass/HOMEPAGE (kde.org)
# DEFINITION
HOMEPAGE="https://kde.org/"
#****
#****o* kde.org.cygclass/SRC_URI (kde.org)
# DESCRIPTION
# Download location for the release tarball.
#****
case ${PV} in
*.*.[56789]?) _stable="unstable" ;;
*) _stable="stable" ;;
esac
case "${PN}:${PV}" in
automoc4:0.9.8[89])
SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.bz2"
;;
amarok:2.*)
SRC_URI="mirror://kde/${_stable}/${PN}/${PV}/src/${P}.tar.bz2"
;;
arts:1.*)
SRC_URI="mirror://kde/Attic/3.${VERSION#*.}/src/arts-${PV}.tar.bz2"
;;
kdevplatform:1.*|kdevelop:4.*|kdevelop-*:1.*)
SRC_URI="mirror://kde/${_stable}/kdevelop/4.${PV[2]}.${PV[3]}/src/${P}.tar.bz2"
;;
calligra:2.*|koffice:2.*)
SRC_URI="mirror://kde/Attic/${PN}-${PV}/${P}.tar.bz2"
;;
phonon:4.*)
SRC_URI="mirror://kde/stable/phonon/${PV}/src/${P}.tar.xz"
;;
phonon-backend-gstreamer:4.*)
SRC_URI="mirror://kde/stable/phonon/${PN}/${PV}/src/${P}.tar.xz"
;;
phonon-backend-vlc:0.*)
SRC_URI="mirror://kde/stable/phonon/${PN}/${PV}/src/${P}.tar.xz"
;;
kde-i18n-*:3.*)
SRC_URI="mirror://kde/Attic/${PV}/src/kde-i18n/${ORIG_PN:-${PN}}-${PV}.tar.bz2"
;;
# setup cannot handle '@' in PN
kde-l10n-ca?valencia:4.*)
SRC_URI="mirror://kde/${_stable}/${PV}/src/kde-l10n/kde-l10n-ca@valencia-${PV}.tar.xz"
SRC_DIR="kde-l10n-ca@valencia-${PV}"
;;
kde-l10n-ca?valencia:[1-9][0-9].*)
SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/kde-l10n/kde-l10n-ca@valencia-${PV}.tar.xz"
SRC_DIR="kde-l10n-ca@valencia-${PV}"
;;
kde-l10n-*:4.*)
SRC_URI="mirror://kde/${_stable}/${PV}/src/kde-l10n/${P}.tar.xz"
;;
kde-l10n-*:[1-9][0-9].*)
SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/kde-l10n/${P}.tar.xz"
;;
# setup cannot handle '@' in PN
calligra-l10n-ca?valencia:2.*|koffice-l10n-ca?valencia:2.*)
SRC_URI="mirror://kde/Attic/${PN%%-*}-${PV}/${PN%%-*}-l10n/${PN%%-*}-l10n-ca@valencia-${PV}.tar.bz2"
SRC_DIR="${PN%%-*}-l10n-ca@valencia-${PV}"
;;
calligra-l10n-*:2.*|koffice-l10n-*:2.*)
SRC_URI="mirror://kde/Attic/${PN%-l10n*}-${PV}/${PN%-l10n*}-l10n/${P}.tar.bz2"
;;
kf5-*:5.*|breeze-icons*|oxygen-icons*)
SRC_URI="mirror://kde/${_stable}/frameworks/${VERSION%\.*}/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
;;
kf5-*:19.12.*|kf5-*:[2-9][0-9].*)
SRC_URI="mirror://kde/${_stable}/release-service/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
;;
kf5-*:19.*)
SRC_URI="mirror://kde/${_stable}/applications/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
;;
kf5-*:1[5678].*)
SRC_URI="mirror://kde/Attic/applications/${VERSION}/src/${ORIG_PN:-${PN#kf5-}}-${PV}.tar.xz"
SRC_DIR="${ORIG_PN:-${PN#kf5-}}-${PV}"
;;
*:3.*)
SRC_URI="mirror://kde/Attic/${VERSION}/src/${ORIG_PN:-${PN%3}}-${PV}.tar.bz2"
SRC_DIR="${ORIG_PN:-${PN%3}}-${PV}"
;;
*:4.14.3)
SRC_URI="mirror://kde/${_stable}/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
*:4.*)
SRC_URI="mirror://kde/Attic/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
*:5.*)
SRC_URI="mirror://kde/${_stable}/plasma/${PV}/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
*:19.12.*|*:[2-9][0-9].*)
SRC_URI="mirror://kde/${_stable}/release-service/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
*:19.*)
SRC_URI="mirror://kde/${_stable}/applications/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
*:1[45678].*)
SRC_URI="mirror://kde/Attic/applications/${PV}/src/${ORIG_PN:-${PN}}-${PV}.tar.xz"
;;
esac
unset _stable
if ! defined SVN_URI
then
#****o* kde.org.cygclass/SVN_URI (kde.org)
# NOTE
# svn.cygclass should be inherit()ed last for this to be of use.
# DEFINITION
SVN_URI="svn://anonsvn.kde.org/home/kde"
#****
SVN_MODULE=${SVN_MODULE:-${ORIG_PN:-${PN}}}
fi
if ! defined GIT_URI
then
#****o* kde.org.cygclass/GIT_URI (kde.org)
# NOTE
# git.cygclass should be inherit()ed last for this to be of use.
# DEFINITION
GIT_URI="git://anongit.kde.org/${ORIG_PN:-${PN}}"
#****
fi