summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 084a73e47751b86e6640ecb829bf7967dc994aac (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
# Maintainer: Ashar Khan <ashar786khan at gmail.com>

pkgname=cpeditor
pkgver=6.11.2
_pkgdir=cpeditor-$pkgver-full-source
pkgrel=1
pkgdesc='The editor for competitive programming'
arch=('x86_64')
url='https://github.com/cpeditor/cpeditor'
license=('GPL3')
depends=('qt5-base' 'hicolor-icon-theme')
makedepends=(
    "cmake"
    "git"
    "ninja"
    "python3"
    "qt5-tools"
)
optdepends=(
    'cf-tool: submit to Codeforces'
    'clang: C++ format and language server'
    'java-environment: compile Java'
    'java-runtime: execute Java'
    'python: execute Python'
    'wakatime: track coding stats'
)
conflicts=("cpeditor-git")
source=("https://github.com/cpeditor/$pkgname/releases/download/$pkgver/cpeditor-$pkgver-full-source.tar.gz")
sha256sums=('ae542de317c28e5347cca8391fdd7945bc1fcdb386083a70320643a3499b2c3a')

build() {
    cd "$_pkgdir"
    cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DPORTABLE_VERSION=Off -DCMAKE_BUILD_TYPE=Release -GNinja
    cmake --build build
}

package() {
    cd "$_pkgdir/build"
    DESTDIR="$pkgdir/" ninja install
}