summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a83f74dc6b7ef6adca0422954cf7917d6e2eac69 (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
pkgname=dura-git
_pkgname=dura
pkgver=v0.2.0.r11.gb4a51b9
pkgrel=1
pkgdesc='Dura is a background process that watches your Git repositories and commits your uncommitted changes'
arch=(x86_64)
url=https://github.com/tkellogg/dura
license=(Apache)
makedepends=(git cargo)
provides=(dura)
source=(git+$url)
sha512sums=('SKIP')

build() {
  cd $_pkgname
  cargo build --locked --release
}

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $_pkgname
  install -D target/release/dura -t "$pkgdir"/usr/bin
}