i forgor
This commit is contained in:
parent
6a118174fc
commit
0aae0065be
6
PKGBUILD
6
PKGBUILD
@ -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() {
|
||||
|
||||
@ -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:
|
||||
```
|
||||
|
||||
@ -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 ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user