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>
|
# Maintainer: Mykhailo Aleksieiev <nekohepott@larpdhq.org>
|
||||||
pkgname=gogofetch-git
|
pkgname=gogofetch-git
|
||||||
pkgver=r35.553cbc9
|
pkgver=r72.51d32b6
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="Fetch written in Go with image support"
|
pkgdesc="Fetch written in Go with image support"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://codeberg.org/nekohepott/goGoFetch.git"
|
url="https://codeberg.org/nekohepott/goGoFetch.git"
|
||||||
@ -28,7 +28,7 @@ prepare() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "goGoFetch"
|
cd "goGoFetch"
|
||||||
go build -o "gogofetch" .
|
go build -o "gogofetch" ./src
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|||||||
@ -39,6 +39,8 @@ credits to melvi for flake
|
|||||||
|
|
||||||
to build with nix:
|
to build with nix:
|
||||||
```bash
|
```bash
|
||||||
|
git clone https://codeberg.org/nekohepott/goGoFetch
|
||||||
|
cd goGoFetch
|
||||||
nix build
|
nix build
|
||||||
```
|
```
|
||||||
to run with nix:
|
to run with nix:
|
||||||
@ -71,7 +73,7 @@ to build:
|
|||||||
```
|
```
|
||||||
git clone https://codeberg.org/nekohepott/goGoFetch
|
git clone https://codeberg.org/nekohepott/goGoFetch
|
||||||
cd goGoFetch
|
cd goGoFetch
|
||||||
go build -o gogofetch main.go
|
go build -o gogofetch ./src
|
||||||
```
|
```
|
||||||
and run:
|
and run:
|
||||||
```
|
```
|
||||||
|
|||||||
@ -17,6 +17,9 @@ func getPmPackages(packagerName string, packagerPath string) string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "error reading " + packagerPath
|
return "error reading " + packagerPath
|
||||||
}
|
}
|
||||||
|
if packagerName == "pacman" {
|
||||||
|
return strconv.Itoa(len(pkgs)-1) + " (pacman)"
|
||||||
|
}
|
||||||
return strconv.Itoa(len(pkgs)) + " (" + packagerName + ")"
|
return strconv.Itoa(len(pkgs)) + " (" + packagerName + ")"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user