diff options
author | dai9ah <dai9ah@protonmail.com> | 2018-02-21 10:29:27 +0200 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-27 21:14:16 +0000 |
commit | 46c17f872a3fa54e4f94b9263e23159dd2684dd4 (patch) | |
tree | 86de3c6a3a7e525920e6d705a8f349127e90b5f3 /testing | |
parent | 43a491f3f30a2f5d5a3451e42c6f349e2e2dcafb (diff) | |
download | aports-46c17f872a3fa54e4f94b9263e23159dd2684dd4.tar.bz2 aports-46c17f872a3fa54e4f94b9263e23159dd2684dd4.tar.xz |
testing/googler: add command completion, fix license
Diffstat (limited to 'testing')
-rw-r--r-- | testing/googler/APKBUILD | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/testing/googler/APKBUILD b/testing/googler/APKBUILD index 70e7d79af4..08c574c9be 100644 --- a/testing/googler/APKBUILD +++ b/testing/googler/APKBUILD @@ -3,14 +3,18 @@ pkgname=googler pkgver=3.5 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" arch="noarch" -license="GPL-3.0" +license="GPL-3.0-or-later" depends="python3" -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/${pkgname}/archive/v${pkgver}.tar.gz" -builddir="$srcdir/"$pkgname-$pkgver +subpackages="$pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + $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() { cd "$builddir" @@ -27,4 +31,31 @@ package() { 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" |