mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
typst: fix versions
This commit is contained in:
parent
98c3a37f03
commit
fdb5de064c
1 changed files with 4 additions and 13 deletions
|
@ -1,27 +1,18 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/typst/typst/archive/refs/tags/22-03-21-2.tar.gz
|
url: https://github.com/typst/typst/archive/refs/tags/v{{ version }}.tar.gz
|
||||||
# url: https://github.com/typst/typst/archive/refs/tags/{{ version }}.tar.gz
|
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
- 0.0.0
|
github: typst/typst/releases/tags
|
||||||
# FIXME: once they have releases
|
|
||||||
# github: typst/typst
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
rust-lang.org: ^1.61
|
rust-lang.org: ^1.61
|
||||||
rust-lang.org/cargo: ^0.65
|
rust-lang.org/cargo: ^0.65
|
||||||
script: |
|
script: |
|
||||||
# Currently, typst tries to use git-hash for the version
|
|
||||||
# which is not available in the tarball. It just sets the
|
|
||||||
# env var TYPST_HASH
|
|
||||||
rm cli/build.rs
|
|
||||||
|
|
||||||
cargo install --path cli --locked --root {{prefix}}
|
cargo install --path cli --locked --root {{prefix}}
|
||||||
env:
|
env:
|
||||||
# see above
|
TYPST_VERSION: ${{ version }}
|
||||||
TYPST_HASH: ${{ version }}-tea
|
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/typst
|
- bin/typst
|
||||||
|
@ -34,5 +25,5 @@ test:
|
||||||
sum_(i=0)^nabla Q_i / 2 $
|
sum_(i=0)^nabla Q_i / 2 $
|
||||||
script: |
|
script: |
|
||||||
cp $FIXTURE test.typ
|
cp $FIXTURE test.typ
|
||||||
typst test.typ
|
typst compile test.typ
|
||||||
test -s test.pdf
|
test -s test.pdf
|
||||||
|
|
Loading…
Reference in a new issue