summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 751ddc4f85312f2f4610b2fd1cac3bf8ff7034d3 (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
# Maintainer: Coelacanthus <CoelacanthusHex@gmail.com>

pkgname=lemon-lime
pkgver=0.3.5
pkgrel=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-git')

source=(Project_LemonLime::git+https://github.com/Project-LemonLime/Project_LemonLime.git#tag=$pkgver
        SingleApplication::git+https://github.com/itay-grudev/SingleApplication.git
        Testlib-for-Lemons::git+https://github.com/GitPinkRabbit/Testlib-for-Lemons.git
        )

b2sums=('c16af3a4ee4f9226a6218e35955333dadd8d3586e898b92708f9601880b8142a54dcad74ae98c63bf03a87a60094bfbc0bdc66c29f9991b8d8572967efcebe8e'
        'SKIP'
        'SKIP')

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" \
        -DLEMON_QT6=ON \
        -DEMBED_TRANSLATIONS=OFF \
        -DEMBED_DOCS=OFF
    ninja -C build

}

package() {
    ninja -C build install
}

# vim: set ts=4 sw=4 et: