diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-07 11:19:46 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-22 23:28:12 +0100 |
commit | dd781f8de1afc15b74f2ff315ef6fa0dae1b83f7 (patch) | |
tree | d84eadfab4460e1631bb6244c140db73c6d7540b /main/the_silver_searcher | |
parent | 90182831f25ca602496bd213da58f2dbd524a302 (diff) | |
download | aports-dd781f8de1afc15b74f2ff315ef6fa0dae1b83f7.tar.bz2 aports-dd781f8de1afc15b74f2ff315ef6fa0dae1b83f7.tar.xz |
main/the_silver_searcher: upgrade to 1.0.2
Diffstat (limited to 'main/the_silver_searcher')
-rw-r--r-- | main/the_silver_searcher/APKBUILD | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/main/the_silver_searcher/APKBUILD b/main/the_silver_searcher/APKBUILD index 746080f97b..7dce8b673a 100644 --- a/main/the_silver_searcher/APKBUILD +++ b/main/the_silver_searcher/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=the_silver_searcher -pkgver=0.33.0 +pkgver=1.0.2 pkgrel=0 pkgdesc="A code searching tool similar to ack, with a focus on speed." url="http://geoff.greer.fm/ag/" @@ -9,7 +9,9 @@ arch="all" license="ASL 2.0" depends="" makedepends="pcre-dev xz-dev" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc + $pkgname-zsh-completion:zshcomp:noarch + $pkgname-bash-completion:bashcomp:noarch" source="http://geoff.greer.fm/ag/releases/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver @@ -31,6 +33,30 @@ package() { make DESTDIR="$pkgdir" install || return 1 } -md5sums="27aa17dbf4e0324defa341764852ba58 the_silver_searcher-0.33.0.tar.gz" -sha256sums="8ca680399df5ee8846a509c8a67c10ee1d5fc1a94456806a0ff9dd913b961db3 the_silver_searcher-0.33.0.tar.gz" -sha512sums="e8e4b5227209ad0ca02308135f62025848ec5a4d758cb8ea4bcc9c8add7394625b40b0796ef23204e50b8b38a2d467ebd573b8f210e6e146ae2d1cb4687aae4f the_silver_searcher-0.33.0.tar.gz" +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ + mv "$pkgdir"/usr/share/the_silver_searcher/completions/ag.bashcomp.sh \ + "$subpkgdir"/usr/share/bash-completion/completions/ag || return 1 + + rmdir -p "$pkgdir"/usr/share/the_silver_searcher/completions/ 2>&1 || true +} + +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/ + mv "$pkgdir"/usr/share/zsh/site-functions/_the_silver_searcher \ + "$subpkgdir"/usr/share/zsh/site-functions/ || return 1 + + rmdir -p "$pkgdir"/usr/share/zsh/site-functions/ 2>&1 || true +} + +md5sums="17bc832cd58313086ccf4bfeaa6033b9 the_silver_searcher-1.0.2.tar.gz" +sha256sums="6f4a78e1f1dfa5434c19e5a585ac8cefee69986f90920928498217b36b84a46c the_silver_searcher-1.0.2.tar.gz" +sha512sums="8c787145f8edaf1ad5ec0ead181b7657a5f6dde25bcece960ff0db68e498a38af16d8bfa4f0a28a19a58344409f0de5d32e848eac4d7906323f181de0da25895 the_silver_searcher-1.0.2.tar.gz" |