aboutsummaryrefslogtreecommitdiffstats
path: root/testing/googler/APKBUILD
blob: 47bd2e523dad6ae3d9b718d2a0e26ceeafaee40f (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=googler
pkgver=3.4
pkgrel=1
pkgdesc="Google Search, Google Site Search, Google News from the terminal."
url="https://github.com/jarun/googler"
arch="noarch"
license="GPL3"
depends="python3"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/${pkgname}/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
}

sha512sums="e16e230df189dfe366e2b0a9e70f54ca42047d3a53ebed2e22fb1b066621391712d455b52465435c7159face8b439fd152c03c54f56f105c7115dc68926c1650  googler-3.4.tar.gz"