pantry/projects/typst.app/package.yml

37 lines
757 B
YAML
Raw Normal View History

2023-03-22 05:24:21 +03:00
distributable:
2023-04-25 05:46:20 +03:00
url: https://github.com/typst/typst/archive/refs/tags/v{{ version }}.tar.gz
2023-03-22 05:24:21 +03:00
strip-components: 1
versions:
2023-04-25 05:46:20 +03:00
github: typst/typst/releases/tags
2023-08-10 01:14:06 +03:00
strip: /^v\d\d-\d\d-\d\d(-\d)?/
2023-03-22 05:24:21 +03:00
2024-03-15 22:19:24 +03:00
dependencies:
openssl.org: ^1.1
2023-03-22 05:24:21 +03:00
build:
dependencies:
rust-lang.org: ^1.61
rust-lang.org/cargo: ^0.65
2023-08-10 01:07:17 +03:00
script:
- run: cargo install --path cli --locked --root {{prefix}}
if: <0.7
- run: cargo install --path crates/typst-cli --locked --root {{prefix}}
if: '>=0.7'
2023-03-22 05:24:21 +03:00
env:
2023-04-25 05:46:20 +03:00
TYPST_VERSION: ${{ version }}
2023-03-22 05:24:21 +03:00
provides:
- bin/typst
test:
fixture: |
Total displaced soil by glacial flow:
$ 7.32 beta +
sum_(i=0)^nabla Q_i / 2 $
script: |
cp $FIXTURE test.typ
2023-04-25 05:46:20 +03:00
typst compile test.typ
2023-03-22 05:24:21 +03:00
test -s test.pdf