mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
# Contributor: Ivan Tham <pickfire@riseup.net>
|
|
# Maintainer: Ivan Tham <pickfire@riseup.net>
|
|
pkgname=googler
|
|
pkgver=3.8
|
|
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"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make disable-self-upgrade
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
./googler --help > /dev/null
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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="39e286236dca12147b31dc218b2a0b58364946f6b30734f84f8116efaa3a8a7fa61cb4d408080d1962498d24d4907bb225a3a4573f416e2e68c52f0a120b233d googler-3.8.tar.gz"
|