Package Details: tex-fmt 0.5.2-2

Git Clone URL: https://aur.archlinux.org/tex-fmt.git (read-only, click to copy)
Package Base: tex-fmt
Description: An extremely fast LaTeX formatter written in Rust
Upstream URL: https://github.com/WGUNDERWOOD/tex-fmt
Licenses: MIT
Submitter: yigits
Maintainer: yigits
Last Packager: yigits
Votes: 1
Popularity: 0.022680
First Submitted: 2024-08-31 09:01 (UTC)
Last Updated: 2025-03-14 20:48 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

rrueger commented on 2025-03-14 20:12 (UTC) (edited on 2025-03-14 20:12 (UTC) by rrueger)

The man page is currently copied one directory too deep (i.e. /usr/share/man/man1/tex-fmt.1/tex-fmt.1.gz instead of /usr/share/man/man1/tex-fmt.1.gz).

This causes an error when calling man tex-fmt.

I believe this is because the install command that copies the man page specifies the -t option for the destination. Together with -D, all of the leading components of the destination are created, instead of all-but-the-last component.

The same is true for the install command for the LICENSE.

Here is the patch to fix it

diff --git a/PKGBUILD b/PKGBUILD
index ee2539d..293edea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37 +37 @@ package() {
-  install -vDm644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1/$pkgname.1"
+  install -vDm644 "man/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
@@ -39 +39 @@ package() {
-  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"