summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b3ae99c64408150c3f90e84f5344a5e1bc774c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Chad "crossroads1112" Sharp <crossroads1112@riseup.net>
pkgname=tlocate
pkgver=r25.c37770c
pkgrel=1
pkgdesc="mlocate rewritten using only GNU coreutils, sudo and bash with proper btrfs subvolume handling, semi-arbitrary filtering and other improvements"
arch=('any')
url="https://github.com/crossroads1112/tlocate"
license=('GPL')
depends=()
makedepends=('git')
source=(git+https://github.com/crossroads1112/tlocate.git)
md5sums=(SKIP)

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

package() {
  cd "$srcdir/tlocate"
  install -Dm0755 tlocate            "$pkgdir/usr/bin/tlocate"
  install -Dm0644 tlocate.conf       "$pkgdir/etc/tlocate.conf"
}