Skip to content
Snippets Groups Projects
Commit 614fa872 authored by Hoang Nguyen's avatar Hoang Nguyen :turtle: Committed by alice
Browse files

testing/go-s: new aport

parent 8396f752
No related branches found
No related tags found
2 merge requests!39304[3.16] main/expat: security upgrade to 2.4.9,!37958testing/go-s: new aport
Pipeline #133275 canceled
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=go-s
pkgver=0.6.6
pkgrel=0
pkgdesc="Open a web search in the terminal"
url="https://github.com/zquestz/s"
arch="all"
license="MIT"
makedepends="go"
subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/zquestz/s/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/s-$pkgver"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
go build -v -o s .
./s --completion bash > s.bash
./s --completion zsh > s.zsh
./s --completion fish > s.fish
}
check() {
go test ./...
}
package() {
install -Dm755 s -t "$pkgdir"/usr/bin
install -Dm644 s.bash \
"$pkgdir"/usr/share/bash-completion/completions/s
install -Dm644 s.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_s
install -Dm644 s.fish \
"$pkgdir"/usr/share/fish/completions/s.fish
}
sha512sums="
c8925499db09fa67dac63dc6f720bc166ed8f074797efdee012bf90e556e11cc4e649f0cfbc73ae3ef92f25be2f3595e87ed46a0ead1f9008405a2eaa4f98de5 go-s-0.6.6.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment