summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3f1de973380e686099f42d2d59345088edb9b22 (plain)
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
# Maintainer: NebulaNeko <chfsefefgesfen foxmail>
# Contributor: acgtyrant <acgtyrant#gmail>

_pkgname=search-and-view
pkgname=$_pkgname-git
pkgver=r37.52a4962
pkgrel=1
pkgdesc="Tools to make searching and viewing easy."
arch=('any')
url="https://github.com/lilydjwg/search-and-view"
license=('GPL3')
depends=('bash' 'python')
makedepends=('git')
optdepends=('python-setproctitle: agv support' 'ripgrep: rgg support' 'the_silver_searcher: agg support' 'vim: vv support')
source=('git+https://github.com/lilydjwg/search-and-view.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${_pkgname}"
  install -Dm 755 agg "$pkgdir/usr/bin/agg"
  install -Dm 755 agv "$pkgdir/usr/bin/agv"
  install -Dm 755 rgg "$pkgdir/usr/bin/rgg"
  install -Dm 755 agv "$pkgdir/usr/bin/rgv"
  install -Dm 755 vv "$pkgdir/usr/bin/vv"
}