aboutsummaryrefslogtreecommitdiffstats
path: root/testing/googler/APKBUILD
blob: 0fc417b88492df37f8af70ffd5b0741a9533565e (plain) (blame)
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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=googler
pkgver=4.3.1
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
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
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

	install -Dm644 "$builddir"/auto-completion/bash/* \
		-t "$pkgdir"/usr/share/bash-completion/completions
	install -Dm644 "$builddir"/auto-completion/fish/* \
		-t "$pkgdir"/usr/share/fish/completions
	install -Dm644 "$builddir"/auto-completion/zsh/* \
		-t "$pkgdir"/usr/share/zsh/site-functions
}

sha512sums="6078355e20cfae797d62232fc157d6a87a8ef7c025f40800fc0d0cfe28bcd6df2b806c5cce0703ccac7b645e5fe30b32cd027d2356d1c47e7946dc1b9fb8fc42  googler-4.3.1.tar.gz"