blob: 1b07fd4e6780ed8e5cca6ce258b4228fbf6a140f (
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
|
# Maintainer: Igor Khanin <igor at khanin dot biz>
pkgname=katvan
pkgver=0.10.0
pkgrel=1
pkgdesc='A bare-bones editor for Typst files, with a bias for RTL editing'
arch=('x86_64')
url='https://katvan.app'
license=('GPL-3.0-or-later')
depends=('qt6-base'
'hunspell'
'libarchive'
'gcc-libs'
'glibc'
'hicolor-icon-theme')
makedepends=('cargo'
'cmake'
'corrosion'
'qt6-tools'
'python-mistletoe'
'gtest')
options=(!lto)
source=("https://github.com/IgKh/katvan/releases/download/v${pkgver}/${pkgname}-${pkgver}-src.tar.gz")
sha256sums=('47c1367a7d2b6225f519df62a8c5d9a7eac026b198b56241f827ed08a05e6aad')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cargo fetch --manifest-path ${pkgname}-${pkgver}/typstdriver/rust/Cargo.toml --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
cmake -B build -S "${pkgname}-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr -DKATVAN_CARGO_PROFILE=release -Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|