blob: 8d4081d07b23dc35eb0ca601d535eef760d74f55 (
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
|
# Maintainer: Coelacanthus <coelacanthus@outlook.com>
pkgname=lemon-lime-git
_pkgname=lemon-lime
pkgver=0.3.2.1.209523.r45767b5.
pkgrel=1
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=('GPL3')
groups=()
depends=('qt5-base' 'hicolor-icon-theme')
makedepends=('git' 'qt5-tools' 'cmake' 'ninja')
checkdepends=()
optdepends=('gcc: C and C++ support'
'fpc: Pascal support'
'java-environment: Java support'
'freebasic: BASIC support'
'python: Python support')
provides=("lemon-lime")
conflicts=("lemon-lime")
replaces=()
backup=()
options=(debug strip)
install=
changelog=
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'
)
noextract=()
b2sums=('SKIP'
'SKIP'
'SKIP')
validpgpkeys=()
pkgver() {
cd "$srcdir/Project_LemonLime"
# Git, tags available
#printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//g')"
__versuffix=$(cat ./makespec/VERSIONSUFFIX)
printf "%s.%s%s.r%s.%s" $(cat ./makespec/VERSION) ${__versuffix##-} $(cat ./makespec/BUILDVERSION) $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
prepare() {
cd "$srcdir/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 submodule update
}
build() {
cd "$srcdir/Project_LemonLime"
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-GNinja \
-DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
-DLEMON_BUILD_INFO="Build for Arch Linux (Git Version)" \
-DLEMON_BUILD_EXTRA_INFO="Build on $(uname -a | cut -d " " -f3,13)" \
-DEMBED_TRANSLATIONS=OFF \
-DEMBED_DOCS=OFF
ninja -C build
}
package() {
cd "$srcdir/Project_LemonLime"
ninja -C build install
install -D -m644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md"
#install -D -m644 Changelog.md "$pkgdir/usr/share/doc/$pkgname/Changelog.md"
}
|