blob: a8c45790be8c5c7629a856ee54b3d600ae50da02 (
plain)
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
# Maintainer: Frank Mertens <frank at cyblogic dot de>
pkgbase=corecomponents
pkgname=(
'corecomponents_core'
'corecomponents_core_tools'
'corecomponents_syntax'
'corecomponents_glob'
'corecomponents_meta'
'corecomponents_testing'
'corecomponents_crypto'
'corecomponents_crypto_tools'
'corecomponents_network'
'corecomponents_network_tools'
'corecomponents_http'
'corecomponents_http_plugins'
'corecomponents_http_tools'
'corecomponents_toki'
'corecomponents_toki_tools'
'corecomponents_ux'
'corecomponents_ux_plugins'
'corecomponents_tools'
)
pkgver=2.2.3
pkgrel=1
pkgdesc="Toolkit for C++ application development"
url="https://www.corecomponents.io"
arch=('x86_64')
license=('GPL3')
source=(
"$pkgbase-$pkgver.tar.gz::https://www.corecomponents.io/download/CoreComponents-$pkgver.tar.gz"
)
md5sums=(
'60c8e2d342fdb6ae199016357489e15a'
)
sha1sums=(
'dbc6972d7750d021e90c80d9a8c93ea88e2ddb29'
)
makedepends=(
'gcc>=10.0.0'
'readline'
'gnutls>=3.3.5'
'cairo'
'freetype2'
'libwebp'
'sdl2>=2.0.10'
)
prepare() {
ln -sf CoreComponents-$pkgver CoreComponents
if [ ! -x CoreComponents-$pkgver-bootstrap/ccbuild ]; then
mkdir -p CoreComponents-$pkgver-bootstrap
pushd CoreComponents-$pkgver-bootstrap
../CoreComponents-$pkgver/bootstrap
popd
fi
if [ ! -x CoreComponents-$pkgver-build/ccbuild ]; then
mkdir -p CoreComponents-$pkgver-build
pushd CoreComponents-$pkgver-build
ln -s ../CoreComponents-$pkgver-bootstrap/ccbuild
popd
fi
}
build() {
cd CoreComponents-$pkgver-build
./ccbuild -prefix=/usr -release ../CoreComponents
}
check() {
cd CoreComponents-$pkgver-build
./ccbuild -prefix=/usr -release -test-run ../CoreComponents
}
package_corecomponents_core() {
pkgdesc="$pkgdesc: system abstraction and language primitives"
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Core/src
}
package_corecomponents_core_tools() {
pkgdesc="$pkgdesc: misc. command line utilities"
depends=('corecomponents_core')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Core/tools
}
package_corecomponents_syntax() {
pkgdesc="$pkgdesc: building blocks for building recursive descent parsers"
depends=('corecomponents_core')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Syntax/src
}
package_corecomponents_glob() {
pkgdesc="$pkgdesc: string and file name pattern matching"
depends=('corecomponents_syntax')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Glob/src
}
package_corecomponents_meta() {
pkgdesc="$pkgdesc: object serialization, deserialization and validation"
depends=('corecomponents_syntax')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Meta/src
}
package_corecomponents_testing() {
pkgdesc="$pkgdesc: unit testing and test automation"
depends=('corecomponents_testing')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Testing/src
}
package_corecomponents_crypto() {
pkgdesc="$pkgdesc: cryptographic primitives"
depends=('corecomponents_core')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Crypto/src
}
package_corecomponents_crypto_tools() {
pkgdesc="$pkgdesc: cryptographic tools"
depends=('corecomponents_crypto' 'readline')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Crypto/tools
}
package_corecomponents_network() {
pkgdesc="$pkgdesc: network sockets, interface status and routing information"
depends=('corecomponents_glob')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Network/src
}
package_corecomponents_network_tools() {
pkgdesc="$pkgdesc: networking tools"
depends=('corecomponents_network')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Network/tools
}
package_corecomponents_http() {
pkgdesc="$pkgdesc: http(s) client/server classes"
depends=('corecomponents_meta' 'corecomponents_glob' 'corecomponents_network' 'gnutls>=3.3.5')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/HTTP/src
}
package_corecomponents_http_plugins() {
pkgdesc="$pkgdesc: http(s) server plugins"
depends=('corecomponents_http')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/HTTP/plugins
}
package_corecomponents_http_tools() {
pkgdesc="$pkgdesc: http(s) tools"
depends=('corecomponents_http_plugins')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/HTTP/tools
}
package_corecomponents_toki() {
pkgdesc="$pkgdesc: syntax highlighting library"
depends=('corecomponents_meta' 'corecomponents_glob')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Toki/src
}
package_corecomponents_toki_tools() {
pkgdesc="$pkgdesc: syntax highlighting tools"
depends=('corecomponents_toki')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/Toki/tools
}
package_corecomponents_ux() {
pkgdesc="$pkgdesc: graphical user interfaces"
depends=('corecomponents_core' 'corecomponents_ux_plugins' 'cairo' 'freetype2' 'libwebp')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/UX/src
}
package_corecomponents_ux_plugins() {
pkgdesc="$pkgdesc: graphical user interface style and platform plugins"
depends=('sdl2>=2.0.10')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/UX/plugins
}
package_corecomponents_tools() {
pkgdesc="$pkgdesc: common developer tools (build system, etc.)"
depends=('corecomponents_tools')
cd CoreComponents-$pkgver-build
./ccbuild -root="$pkgdir" -install -release ../CoreComponents/tools
}
|