summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5b7211b4b80a963835c62ef5ebb8362f93722b5 (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
# Maintainer: Jasper <j@sperp.dev> -> https://github.com/jaspwr

pkgname=lia-git
pkgver=0.3.0
pkgrel=1
pkgdesc="Compiler for LiA, a transpiled superset of TeX for writing LaTeX."
makedepends=('rust' 'cargo' 'git')
license=('GPL')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/jaspwr/LiA"

source=("$pkgname::git+https://github.com/jaspwr/LiA#branch=main")
sha256sums=('SKIP')

prepare() {
    cd "$pkgname"
    cargo fetch --target "$CARCH-unknown-linux-gnu"
}

build() {
    cd "$pkgname"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --release
}

package() {
    cd "$pkgname"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/lia"
}