This commit is contained in:
nekohepott 2026-06-17 04:16:27 +03:00
parent 6a118174fc
commit 0aae0065be
No known key found for this signature in database
3 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Mykhailo Aleksieiev <nekohepott@larpdhq.org>
pkgname=gogofetch-git
pkgver=r35.553cbc9
pkgrel=2
pkgver=r72.51d32b6
pkgrel=1
pkgdesc="Fetch written in Go with image support"
arch=('x86_64')
url="https://codeberg.org/nekohepott/goGoFetch.git"
@ -28,7 +28,7 @@ prepare() {
build() {
cd "goGoFetch"
go build -o "gogofetch" .
go build -o "gogofetch" ./src
}
package() {

View File

@ -39,6 +39,8 @@ credits to melvi for flake
to build with nix:
```bash
git clone https://codeberg.org/nekohepott/goGoFetch
cd goGoFetch
nix build
```
to run with nix:
@ -71,7 +73,7 @@ to build:
```
git clone https://codeberg.org/nekohepott/goGoFetch
cd goGoFetch
go build -o gogofetch main.go
go build -o gogofetch ./src
```
and run:
```

View File

@ -17,6 +17,9 @@ func getPmPackages(packagerName string, packagerPath string) string {
if err != nil {
return "error reading " + packagerPath
}
if packagerName == "pacman" {
return strconv.Itoa(len(pkgs)-1) + " (pacman)"
}
return strconv.Itoa(len(pkgs)) + " (" + packagerName + ")"
}
return ""