Package Details: hledger-bin 1.52.1-1

Git Clone URL: https://aur.archlinux.org/hledger-bin.git (read-only, click to copy)
Package Base: hledger-bin
Description: Command-line interface for the hledger accounting system
Upstream URL: http://hledger.org
Keywords: hledger ledger
Licenses: GPL-3.0-or-later
Conflicts: hledger
Provides: hledger
Submitter: ccat3z
Maintainer: gesh
Last Packager: gesh
Votes: 9
Popularity: 0.000207
First Submitted: 2020-08-22 05:39 (UTC)
Last Updated: 2026-05-01 04:19 (UTC)

Dependencies (1)

Required by (7)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

dude commented on 2024-09-10 15:31 (UTC) (edited on 2024-09-10 15:38 (UTC) by dude)

@gesh Can you change your patch to pull hledger-completion.bash from the 1.40 source release rather than git master?

The restriction is noted here: https://wiki.archlinux.org/title/AUR_submission_guidelines#Rules_of_submission

Packages that build from a version control system and are not tied to a specific version need to have an appropriate suffix, -git for git and so on

gesh commented on 2024-09-10 15:17 (UTC)

I don't understand the reasoning for this restriction -- yes, this makes the PKGBUILD sensitive to changes to the completions, but they haven't changed in 2 years. I have prodded upstream on this, hopefully this gets resolved one way or the other https://github.com/simonmichael/hledger/issues/986

dude commented on 2024-09-10 09:13 (UTC)

@gesh Can't use files from a git repo for this, the source files need to be taken from an official tarball release. Because if the hledger-completion.bash file gets updated upstream, this package will fail to build (shasum will be different).

gesh commented on 2024-07-09 14:40 (UTC) (edited on 2024-07-09 14:43 (UTC) by gesh)

Please add the bash completion:

diff --git a/PKGBUILD b/PKGBUILD
index f0818d5..0a9d6ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,10 +11,10 @@ depends=('gmp' 'ncurses5-compat-libs')
 makedepends=('coreutils')
 source=(
     hledger-${pkgver}.tar.gz::https://github.com/simonmichael/hledger/releases/download/${pkgver}/hledger-linux-x64.tar.gz
+    https://raw.githubusercontent.com/simonmichael/hledger/master/hledger/shell-completion/hledger-completion.bash
 )
-sha256sums=(
-    bbeef13b7cea31e5896cfcc5b2563b96187673bddc29f243815814a44f25a139
-)
+sha256sums=('bbeef13b7cea31e5896cfcc5b2563b96187673bddc29f243815814a44f25a139'
+            '662abb7f39b9582315a6d014012fdff56664e8cf6b2665f1d96ae3285930d4ce')

 prepare() {
     cd $srcdir
@@ -28,6 +28,8 @@ package_hledger-bin() {
     depends+=(glibc)

     install -Dm 755 ./hledger "$pkgdir/usr/bin/hledger"
+    install -Dm 644 hledger-completion.bash \
+        "$pkgdir/usr/share/bash-completion/completions/hledger"
 }

 package_hledger-ui-bin() {

behonest commented on 2022-03-05 09:10 (UTC)

Please update 1.25: https://github.com/simonmichael/hledger/releases/tag/1.25

ccat3z commented on 2022-01-15 16:07 (UTC)

@tuh8888 Fixed, thanks.

tuh8888 commented on 2022-01-13 19:10 (UTC)

Fails to download because download URL is incorrect. Current: https://github.com/simonmichael/hledger/releases/download/hledger-1.24.1/hledger-linux-x64.zip Should be: https://github.com/simonmichael/hledger/releases/download/1.24.1/hledger-linux-x64.zip

ccat3z commented on 2021-05-31 05:50 (UTC)

@behonest It should work on non-English systems now.

behonest commented on 2021-05-20 08:44 (UTC)

Solved this issue by using en locale.

If ru_RU LANG:

==> Запускается prepare()...
Patch hledger
./patch-ncurses5.sh: строка 30: 0x00002d34 + : синтаксическая ошибка: ожидается операнд (неверный маркер «+ »)

To solve just use 'en' LANG:

LANG=en makepkg -si

dude commented on 2021-05-14 00:56 (UTC)

Thanks for fixing that so quickly