diff options
author | jjohnstondev | 2023-01-09 16:05:35 -0800 |
---|---|---|
committer | jjohnstondev | 2023-01-09 16:05:35 -0800 |
commit | bcd92baebfc03c4f6574383b0820e92919a538d6 (patch) | |
tree | 86b6c656dffbc362a04692449f61ec278d8c4487 /PKGBUILD | |
parent | 82c1d81c3e96e53268893d7b6d04fbd57a9cafd8 (diff) | |
download | aur-bcd92baebfc03c4f6574383b0820e92919a538d6.tar.gz |
refactor
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,5 @@ pkgname=gospt -pkgver=0.0.3 +pkgver=0.0.5 pkgrel=1 pkgdesc='Spotify TUI And CLI written in Go' arch=('x86_64') @@ -7,7 +7,7 @@ url="https://gitea.asdf.cafe/abs3nt/$pkgname" license=('GPL') makedepends=('go') source=("$url/archive/v$pkgver.tar.gz") -sha256sums=('0f47f157680df65dcded6fa8815ad4339eef13e6e922327f0e3134b1f9abbbaf') +sha256sums=('391bccbf432c11c0744aa401db8bb796203f900b6714b1c851cc28ea015845bd') prepare(){ cd "$pkgname" @@ -22,6 +22,9 @@ build() { export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" go build -o build ./... + ./build/$pkgname completion zsh > build/gospt_zsh + ./build/$pkgname completion bash > build/gospt_bash + ./build/$pkgname completion fish > build/gospt_fish } check() { @@ -32,4 +35,9 @@ check() { package() { cd "$pkgname" install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 build/gospt_zsh "$pkgdir"/usr/share/zsh/site-functions/_gospt + install -Dm644 build/gospt_bash "$pkgdir"/usr/share/bash-completion/completions/gospt + install -Dm644 build/gospt_fish "$pkgdir"/usr/share/fish/vendor_completions.d/gospt.fish + + } |