Package Details: llama-bin 1.0.2-1

Git Clone URL: https://aur.archlinux.org/llama-bin.git (read-only, click to copy)
Package Base: llama-bin
Description: Terminal file manager
Upstream URL: https://github.com/antonmedv/llama
Licenses: MIT
Conflicts: llama
Provides: llama
Submitter: emilio-r
Maintainer: emilio-r
Last Packager: emilio-r
Votes: 0
Popularity: 0.000000
First Submitted: 2021-12-10 11:18 (UTC)
Last Updated: 2022-01-03 16:50 (UTC)

Dependencies (0)

Required by (0)

Sources (4)

Latest Comments

emilio-r commented on 2021-12-14 22:24 (UTC)

@lmartinez: Thanks for your patch! I learned a thing or three on the go :)

lmartinez-mirror commented on 2021-12-12 04:28 (UTC) (edited on 2021-12-12 04:29 (UTC) by lmartinez-mirror)

Posting a patch because the current revision doesn't fetch sources properly. It also updates to 1.0.1, the newest version.

diff --git a/PKGBUILD b/PKGBUILD
index 2849968..95e9c42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,25 @@
 # Maintainer: Emilio Reggi <nag@mailbox.org>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
+
 pkgname=llama-bin
-_pkgname=llama
-pkgver=1.0.0
-pkgrel=2
-pkgdesc="A terminal file manager written in Go"
-arch=('x86_64')
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Terminal file manager"
+arch=('x86_64' 'i686' 'arm')
 url="https://github.com/antonmedv/llama"
 license=('MIT')
-provides=("${_pkgname}")
-conflicts=("${_pkgname}")
-source=('https://github.com/antonmedv/llama/releases/download/v${pkgver}/llama_linux_amd64' 'LICENSE')
-noextract=("llama_linux_amd64")
-sha256sums=('6fb879a0a4267fdb54ea190e14f32f815dcc4548dc042c8226e04ee5b33f4038' 'd63a8c4f17dde022f8d1f96a4b2c744821f65bcae926b4de4ee77230a70cdee4')
+provides=('llama')
+conflicts=('llama')
+source=("LICENSE-$pkgver::$url/raw/v$pkgver/LICENSE")
+source_x86_64=("llama-$pkgver-x86_64::$url/releases/download/v$pkgver/llama_linux_amd64")
+source_i686=("llama-$pkgver-i686::$url/releases/download/v$pkgver/llama_linux_386")
+source_arm=("llama-$pkgver-arm::$url/releases/download/v$pkgver/llama_linux_arm")
+sha256sums=('d63a8c4f17dde022f8d1f96a4b2c744821f65bcae926b4de4ee77230a70cdee4')
+sha256sums_x86_64=('6ca0a14a026c08abeb30c354a64f6c108a45046ae2141f77ea3a80cce9e3bfb5')
+sha256sums_i686=('59bb8c9ffe01fc01d21eb4b6ad90a91f64ba6662a92b3abd30741af8a42aa325')
+sha256sums_arm=('b64ec5cb64e87e9a719e09159c5e7bb9f432e33778eca086c5e1875dffe55764')

 package() {
-   install -Dm755 llama_linux_amd64 "$pkgdir/usr/bin/$_pkgname"
-   install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${_pkgname}"
+   install -D "llama-$pkgver-$CARCH" "$pkgdir/usr/bin/llama"
+   install -Dm644 "LICENSE-$pkgver" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

emilio-r commented on 2021-12-11 23:28 (UTC)

@m040601: You are totally right, thanks for noticing this! I was about to make a -git package when I realized that upstream provided a binary. I should have noticed the missing LICENSE file, too. Sorry if this caused any irritation at the authors side.

m040601 commented on 2021-12-11 21:43 (UTC)

Thanks for you work providing this AUR package.

Unfortunately it's not working as it's supposed to be:

    $ yay -S  llama-bin
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo Make:1]  go-2:1.17.5-1
[Aur:1]  llama-bin-1.0.0-1

==> Remove make dependencies after install? [y/N]

So it wants to pull the entire 500 Mega go package as a "make" dependency (and have it removed it later).

And that's because the PKGBUILD has:

makedepends=('go')

But that's not how AUR "-bin" packages work. A "-bin" package has nothing to compile, so no need for the "go" package. A "-bin" package should simply pull a precompiled version, from https://github.com/antonmedv/llama/releases. And eventually had LICENSE/doc/man files to /usr/share/doc/llama etc.