summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b28320b4e62123fabb8ab00fa81c0cfbf89405b (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
# Maintainer: Robbert van der Helm <mail@robbertvanderhelm.nl>

pkgname=clap-validator-git
_pkgname=clap-validator
pkgver=0.1.0.r0.g9071ebf
pkgrel=1
pkgdesc="An automatic CLAP validation and testing tool"
epoch=
arch=('x86_64')
url="https://github.com/free-audio/clap-validator"
license=('MIT')
makedepends=('git' 'cargo')
provides=('clap-validator')
source=('git+https://github.com/free-audio/clap-validator')
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  cargo build --release --locked --all-features --target-dir=target
}

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