summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c08bb87585b25d6c7e4fd78a9b23e2fc4bc34133 (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
31
32
33
# Maintainer: Hans-Peter Deifel <hpd@hpdeifel.de>
pkgname=aurs-git
pkgver=0.5.0.r0.g06fdbe5
pkgrel=1
pkgdesc="An AUR helper written in Rust"
arch=('x86_64')
url="https://gitlab.com/hpdeifel/aurs"
license=('GPL3')
provides=('aurs')
depends=('sudo' 'ranger' 'git' 'pacman')
makedepends=('cargo' 'clang')
conflicts=('aurs')
source=("$pkgname::git+https://gitlab.com/hpdeifel/aurs.git")
sha256sums=('SKIP')

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

build() {
  cd "$pkgname"

  cargo build --release
}

package() {
  cd "$pkgname"

  install -D "target/release/aurs" -t "$pkgdir/usr/bin/"
}

# vim:set ts=2 sw=2 et: