Package Details: typstfmt-git r307.0c873d3-1

Git Clone URL: https://aur.archlinux.org/typstfmt-git.git (read-only, click to copy)
Package Base: typstfmt-git
Description: formatter for the Typst language
Upstream URL: https://github.com/astrale-sharp/typstfmt
Licenses: GPL3
Submitter: Freed
Maintainer: Freed (sudormrfbin)
Last Packager: Freed
Votes: 0
Popularity: 0.000000
First Submitted: 2023-07-17 08:09 (UTC)
Last Updated: 2023-12-02 13:40 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

TeddyHuang-00 commented on 2024-03-01 01:15 (UTC) (edited on 2024-03-01 20:47 (UTC) by TeddyHuang-00)

Failed to build the binary which is possibly caused by empty head ref. I don't know the exact cause for this. Tried cleaning the cache yet that doesn't help. Could someone please help?

P.S. The license is also updated, please also update the license info.

==> Starting pkgver()...
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: Needed a single revision
==> Removing existing $pkgdir/ directory...
==> Starting build()...
error: could not find `Cargo.toml` in `/home/teddyhuang/.cache/paru/clone/typstfmt-git/src/typstfmt` or any parent directory
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'typstfmt-git-r307.0c873d3-1':
error: packages failed to build: typstfmt-git-r307.0c873d3-1

Side note: If anyone is facing the same issue, I have created typstfmt-bin package as a alternative for you to choose.

tobyvin commented on 2024-02-21 01:18 (UTC)

This requires cargo as a makedepends in order to be built in a clean chroot.

Freed commented on 2023-12-02 13:26 (UTC)

@sudormrfbin Thanks!

sudormrfbin commented on 2023-11-30 12:55 (UTC) (edited on 2023-11-30 12:56 (UTC) by sudormrfbin)

Patch for building in release mode

diff --git a/PKGBUILD b/PKGBUILD
index b5d44fd..186b1ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,12 +18,12 @@ pkgver() {
 build() {
    cd "$_pkgname" || return 1

-   cargo build
+   cargo build --release
 }

 package() {
    cd "$_pkgname" || return 1

-   install -D "target/debug/$_pkgname" -t "$pkgdir/usr/bin"
+   install -D "target/release/$_pkgname" -t "$pkgdir/usr/bin"
    install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
 }

TeddyHuang-00 commented on 2023-10-31 21:00 (UTC)

Could you please add --release flag to the cargo build command and also adjust the target location from debug to release? So that we can have an optimized performance?