blob: 3c3438649197784a945117de4ed4e428a8a3613f (
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
|
# Maintainer: Kimiblock Moe
pkgname=typesetter
pkgdesc="A minimalist, local-first Typst editor."
url="https://codeberg.org/haydn/typesetter"
license=("GPL-3.0-or-later")
arch=("x86_64")
pkgver=0.10.0
pkgrel=1
makedepends=("rust" "cargo" "git" "blueprint-compiler" "meson" "libvirt" "libvirt-glib" "blueprint-compiler")
depends=(libadwaita gtk4 hicolor-icon-theme dconf gcc-libs glib2 glibc gtksourceview5 libspelling pango gdk-pixbuf2 openssl cairo)
source=("source::git+https://codeberg.org/haydn/typesetter.git#tag=v${pkgver}")
sha256sums=('bfdbb96a7a0f0f5fae2f1ac3e074cb86045259414ce1deaa8ecca4c85691d5df')
options=()
function prepare() {
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
rm -rf build
cd source
git clean -fdx
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
function build() {
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
#export RUST_BACKTRACE=1
arch-meson "${srcdir}/source" build --buildtype=release
meson compile -C build
}
function check() {
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
meson test -C build --no-rebuild --print-errorlogs
}
function package() {
meson install \
-C build \
--no-rebuild \
--destdir "${pkgdir}"
}
|