summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 764344ffaa3fa32048933f55d4bd6591e215bedb (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
35
36
37
38
39
40
# Contributor:  Vincent Grande <shoober420@gmail.com>
# Contributor: quininer

_name=vtebench
pkgname=vtebench-git
pkgver=0.3.1.r15.gc75155b
pkgrel=1
arch=('x86_64')
url=https://github.com/alacritty/vtebench
pkgdesc="Generate benchmarks for terminal emulators"
license=('Apache')
depends=('freetype2' 'fontconfig' 'libxi' 'libxcursor' 'libxrandr')
makedepends=('rust' 'cargo' 'cmake' 'fontconfig' 'ncurses' 'desktop-file-utils' 'gdb' 'libxcb' 'git')
install=vtebench.install
provides=(vtebench)
conflicts=(vtebench)
source=(git+https://github.com/alacritty/vtebench)
sha256sums=('SKIP')

pkgver() {
  cd ${_name}
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build(){
  cd ${_name}
  env CARGO_INCREMENTAL=0 cargo build --release --locked
}

#check(){
#  cd vtebench
#  env CARGO_INCREMENTAL=0 cargo test --release
#}

package() {
  cd ${_name}
  install -D -m755 "target/release/vtebench" "$pkgdir/usr/bin/vtebench"
  install -d "${pkgdir}/usr/share/vtebench/benchmarks"
  cp -r "$srcdir/vtebench/benchmarks" "${pkgdir}/usr/share/vtebench"
}