summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00e1099de39efdb95fae8fc4c8f869a7c3af2200 (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
34
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
pkgname=hexdino-git
_name=hexdino
pkgver=r155.6397896
pkgrel=1
pkgdesc="A hex editor with vim like keybindings written in Rust."
arch=('x86_64' 'i686')
url="https://github.com/Luz/hexdino"
license=('MIT')
depends=()
makedepends=('git' 'rust' 'cargo')
provides=('hexdino')
conflicts=('hexdino')
options=(!emptydirs !strip)
source=('git+https://github.com/Luz/hexdino')
md5sums=('SKIP')

build() {
  cd "$srcdir/$_name"
  cargo build --release
}

package() {
  cd "$srcdir/$_name"
  mkdir -p "$pkgdir/usr/bin"
  install -o root -g root -m 755 target/release/hexdino "$pkgdir/usr/bin"
}

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

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