blob: 2a2e265f99ec9ddfca1554404b4ec979f4b82725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=googler
pkgver=4.0
pkgrel=0
pkgdesc="Google Search, Google Site Search, Google News from the terminal"
url="https://github.com/jarun/googler"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
subpackages="$pkgname-doc
$pkgname-bash-completion:bashcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/googler/archive/v$pkgver.tar.gz"
build() {
make disable-self-upgrade
}
package() {
make install DESTDIR="$pkgdir" PREFIX=/usr
}
bashcomp() {
pkgdesc="Bash completion 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 completion 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 completion 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="3422e9d7c9321554d755bdf0d6c03cce82489770b48bf9523aba8b79ef3985fda2c388c97e90ce5be312be18c94fed7186d03973e1406f5d16fd9ff2028b0620 googler-4.0.tar.gz"
|