# Maintainer: Pablo Arias # Contributor: John Jenkins pkgname=googler pkgver=3.7.1 pkgrel=1 pkgdesc="Google from the command-line" arch=('any') url="https://github.com/jarun/googler" license=('GPL3') depends=('python') conflicts=('googler-git') source=("https://github.com/jarun/googler/archive/v$pkgver.tar.gz") sha256sums=('1ceadab40fea49a113f46807a5c7297fcf145eeaa8128e33d53aadb275377f37') prepare() { cd "${pkgname}-${pkgver}" make disable-self-upgrade > /dev/null } package() { cd "${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" PREFIX="/usr" install > /dev/null #Install autocomplete scripts install -Dm644 auto-completion/fish/googler.fish "${pkgdir}/usr/share/fish/vendor_completions.d/googler.fish" install -Dm644 auto-completion/bash/googler-completion.bash "${pkgdir}/etc/bash_completion.d/googler" install -Dm644 auto-completion/zsh/_googler "${pkgdir}/usr/share/zsh/site-functions/_googler" }