mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/googler: add command completion, fix license
This commit is contained in:
parent
43a491f3f3
commit
46c17f872a
@ -3,14 +3,18 @@
|
|||||||
pkgname=googler
|
pkgname=googler
|
||||||
pkgver=3.5
|
pkgver=3.5
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Google Search, Google Site Search, Google News from the terminal."
|
pkgdesc="Google Search, Google Site Search, Google News from the terminal"
|
||||||
url="https://github.com/jarun/googler"
|
url="https://github.com/jarun/googler"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL-3.0"
|
license="GPL-3.0-or-later"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/${pkgname}/archive/v${pkgver}.tar.gz"
|
$pkgname-bash-completion:bashcomp:noarch
|
||||||
builddir="$srcdir/"$pkgname-$pkgver
|
$pkgname-fish-completions:fishcomp:noarch
|
||||||
|
$pkgname-zsh-completion:zshcomp:noarch
|
||||||
|
"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/$pkgname/archive/v$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
@ -27,4 +31,31 @@ package() {
|
|||||||
make install DESTDIR="$pkgdir" PREFIX=/usr
|
make install DESTDIR="$pkgdir" PREFIX=/usr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bashcomp() {
|
||||||
|
pkgdesc="Bash completions for $pkgname"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
|
||||||
|
install -Dm644 "$builddir"/auto-completion/bash/* \
|
||||||
|
"$subpkgdir"/usr/share/bash-completion/completions/
|
||||||
|
}
|
||||||
|
|
||||||
|
fishcomp() {
|
||||||
|
pkgdesc="Fish completions for $pkgname"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel fish"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"/usr/share/fish/completions/
|
||||||
|
install -Dm644 "$builddir"/auto-completion/fish/* \
|
||||||
|
"$subpkgdir"/usr/share/fish/completions/
|
||||||
|
}
|
||||||
|
|
||||||
|
zshcomp() {
|
||||||
|
pkgdesc="Zsh completions for $pkgname"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel zsh"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
|
||||||
|
install -Dm644 "$builddir"/auto-completion/zsh/* \
|
||||||
|
"$subpkgdir"/usr/share/zsh/site-functions/
|
||||||
|
}
|
||||||
|
|
||||||
sha512sums="fd3cd58ff6c492b04a8c0b271207452991155c571fc31f237eb13fe8ccc08cc3096a994085daa0001b22307e99516dba24af44fd43ddc88d2eaeda5a975cbe9a googler-3.5.tar.gz"
|
sha512sums="fd3cd58ff6c492b04a8c0b271207452991155c571fc31f237eb13fe8ccc08cc3096a994085daa0001b22307e99516dba24af44fd43ddc88d2eaeda5a975cbe9a googler-3.5.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user