blob: 5bb243a7b335b207ed69fa8245928a6339d34a5b (
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
|
# Maintainer: Coelacanthus <CoelacanthusHex@gmail.com>
pkgname=lemon-lime-git
_pkgname=lemon-lime
pkgver=0.3.5alpha2.r31.g5be9374
pkgrel=2
epoch=1
pkgdesc="为了 OI 比赛而生的基于 Lemon 的轻量评测系统 | A tiny judging environment for OI contest based on Project_LemonPlus"
arch=('x86_64' 'i686')
url="https://github.com/Project-LemonLime/Project_LemonLime"
license=('GPL-3.0-or-later')
depends=('gcc-libs'
'glibc'
'hicolor-icon-theme'
'qt6-base'
'xdg-utils'
)
makedepends=('cmake'
'git'
'ninja'
'qt6-tools'
)
optdepends=('fpc: Pascal support'
'freebasic: BASIC support'
'gcc: C and C++ support'
'java-environment: Java support'
'python: Python support')
provides=('lemon-lime')
conflicts=('lemon-lime')
source=(Project_LemonLime::git+https://github.com/Project-LemonLime/Project_LemonLime.git
SingleApplication::git+https://github.com/itay-grudev/SingleApplication.git
Testlib-for-Lemons::git+https://github.com/GitPinkRabbit/Testlib-for-Lemons.git
)
b2sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "Project_LemonLime"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-//;s/-/./g'
}
prepare() {
cd "Project_LemonLime"
git submodule init
submodules=('SingleApplication')
for module in ${submodules[@]}; do
git config submodule."3rdparty/$module".url "${srcdir}/$module"
done
git config submodule."assets/Testlib-for-Lemons".url "${srcdir}/Testlib-for-Lemons"
git -c protocol.file.allow=always submodule update
}
build() {
cmake -S Project_LemonLime -B build \
-DCMAKE_BUILD_TYPE=None \
-GNinja \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
-DLEMON_BUILD_INFO="Build for Arch Linux (Git Version)" \
-DLEMON_QT6=ON \
-DEMBED_TRANSLATIONS=OFF \
-DEMBED_DOCS=OFF
ninja -C build
}
package() {
ninja -C build install
}
# vim: set ts=4 sw=4 et:
|