summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Arias2018-05-24 22:51:40 +0200
committerPablo Arias2018-05-24 22:51:40 +0200
commita38a9b0492cbb8a23c769b5ae77191dbb4730444 (patch)
tree2f3a96d10dfb669c1e181a63f39bbdd1ee388584
parentc2ed47d0636593aac97e60c84e08ccbe77e3f6a3 (diff)
downloadaur-a38a9b0492cbb8a23c769b5ae77191dbb4730444.tar.gz
* Bumped to version 3.6
* Started using provided makefile
-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"