public
Created

  • Download Gist
PKGBUILD
Shell
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 31 32 33 34
# Maintainer: Limao Luo <luolimao+AUR@gmail.com>
 
_pkgname=the_silver_searcher
pkgname=silver-searcher-git
pkgver=6159572
pkgrel=1
epoch=1
pkgdesc="The Silver Searcher: An attempt to make something better than ack, which itself is better than grep."
arch=(i686 x86_64)
url=https://github.com/ggreer/$_pkgname
license=(Apache)
makedepends=(git)
provides=($_pkgname=0.13.1)
conflicts=($_pkgname)
source=("git://github.com/ggreer/${_pkgname}.git")
md5sums=('SKIP')
 
pkgver() {
cd "$srcdir/$_pkgname"
git describe --always | sed 's|-|.|g'
}
 
build() {
cd "$srcdir/$_pkgname"
./build.sh
}
 
package() {
cd "$srcdir/$_pkgname"
install -Dm755 ag "$pkgdir/usr/bin/ag"
install -Dm644 doc/ag.1 "$pkgdir/usr/share/man/man1/ag.1"
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.