summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 07649c3c757..e277958c997 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: John Jenkins <twodopeshaggy@gmail.com>
pkgname=googler
-pkgver=3.5
+pkgver=3.6
pkgrel=1
pkgdesc="Google from the command-line"
arch=('any')
@@ -11,17 +11,18 @@ license=('GPL3')
depends=('python')
conflicts=('googler-git')
source=("https://github.com/jarun/googler/archive/v$pkgver.tar.gz")
-sha256sums=('55ff07648257f5d2d642d1f5d6bd682e6aa32605755d4040dac4ef787257cbea')
+sha256sums=('514218f5155a2c1bd653462a503507beafca9d7ddff7203aeabb3ab4812e4b44')
prepare() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "${pkgname}-${pkgver}"
make disable-self-upgrade > /dev/null
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- install -Dm755 googler "${pkgdir}/usr/bin/googler"
- install -Dm644 googler.1 "${pkgdir}/usr/share/man/man1/googler.1"
+ 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"