Date: Tuesday, April 11, 2023 @ 21:17:56
  Author: alerque
Revision: 1444759

upgpkg: typst 1:0.2.0-1

Modified:
  typst/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-11 19:44:22 UTC (rev 1444758)
+++ PKGBUILD    2023-04-11 21:17:56 UTC (rev 1444759)
@@ -2,7 +2,7 @@
 # Contributor: Ilaï Deutel
 
 pkgname=typst
-pkgver=0.1.0
+pkgver=0.2.0
 pkgrel=1
 epoch=1
 pkgdesc='A markup-based typesetting system for the sciences'
@@ -10,21 +10,24 @@
 url="https://$pkgname.app";
 _url="https://github.com/$pkgname/$pkgname";
 license=(Apache)
+depends=(gcc-libs
+         glibc)
 makedepends=(cargo
              git)
 _archive="$pkgname-$pkgver"
 source=("$_url/archive/v$pkgver/$_archive.tar.gz")
-sha256sums=('9da7543266c7776aed56c36b9fab95fdb7241674b426cfba287a21f4cf07c172')
+sha256sums=('f52e1cab191034354b3adaa97c27cbf16ed99486dc302b014bf211a8b6a7e964')
 
 prepare() {
-       local hash=$(gunzip < "$_archive.tar.gz" | git get-tar-commit-id)
        cd "$_archive"
-       sed -i -e "/unwrap_or_else/s/(unknown hash)/${hash::8}/" cli/build.rs
        cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
 build() {
+       local hash=$(gunzip < "$_archive.tar.gz" | git get-tar-commit-id)
        cd "$_archive"
+       export TYPST_VERSION="$pkgver (${hash::8})"
+       export GEN_ARTIFACTS=./
        cargo build -p typst-cli --frozen --release --all-features
 }
 
@@ -36,4 +39,8 @@
 package() {
        cd "$_archive"
        install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
+       install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "cli/$pkgname"*.1
+       install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/" 
"cli/_$pkgname"
+       install -Dm0644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" 
"cli/$pkgname.fish"
+       install -Dm0644 "cli/$pkgname.bash" 
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
 }

Reply via email to