blob: e397e2d80523669ecbaae14cc351b3cffbc18094 (
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
|
# Maintainer: Coelacanthus <coelacanthus@outlook.com>
pkgname=lemon-lime
pkgver=0.3.3
pkgrel=4
epoch=
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-git")
replaces=()
backup=()
options=(debug strip)
install=
changelog=
source=(
"https://github.com/Project-LemonLime/Project_LemonLime/releases/download/${pkgver}/Lemon-${pkgver}-source-all.7z"
)
noextract=("Lemon-${pkgver}-source-all.7z")
b2sums=('071b3f2a17460b6b8862a635b3994733726ff9a887bc0337b99187ce1c57d221acef8de9390a88502f11a4c8601f56a70bfe7f992d556c0c20c651bbf8a7fa88')
prepare() {
cd "$srcdir"
bsdtar -xvf Lemon-${pkgver}-source-all.7z
}
build() {
cd "$srcdir"
cmake -S. -B build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-GNinja \
-DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
-DLEMON_BUILD_INFO="Build for Arch Linux" \
-DLEMON_BUILD_EXTRA_INFO="Build on $(uname -a | cut -d " " -f3,13)" \
-DEMBED_TRANSLATIONS=OFF \
-DEMBED_DOCS=OFF
ninja -C build
}
package() {
cd "$srcdir"
ninja -C build install
install -D -m644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md"
}
|