blob: a83f110489116c8f23d9428b9f8bc1fa081fad89 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=typstudio
pkgver=0.1.0dev.33
_pkgver=${pkgver/dev/-dev}
pkgrel=1
pkgdesc='desktop application for typst'
url="https://github.com/Cubxity/$pkgname"
arch=(x86_64)
license=(GPL3)
depends=(libsoup
webkit2gtk)
makedepends=(cargo
cargo-tauri
jq
moreutils
pnpm)
_archive="$pkgname-$_pkgver"
source=("$url/archive/refs/tags/v$_pkgver/$_archive.tar.gz")
sha256sums=('698583c106fc235194b760ca3adc5caea678aa932aabe718374862b50c4bc731')
prepare() {
cd "$_archive"
local conf=src-tauri/tauri.conf.json
jq '.tauri.bundle.active |= false' "$conf" | sponge "$conf"
pnpm install --frozen-lockfile
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" --manifest-path src-tauri/Cargo.toml
}
build() {
cd "$_archive"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo-tauri build
}
package() {
cd "$_archive"
local target="src-tauri/target/release/$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "$target"
}
|