summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af6b36b68051a235b179822879a1ed793a7d36d3 (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
pkgname='vmjk-git'
_pkgname="vmjk"
pkgver=0.1.0.9.g71f1ff7
pkgrel=1
arch=('x86_64' 'i686')
url="https://github.com/suhr/vmjk"
pkgdesc="Virtual midi janko keyboard"
license=('unknown')
depends=('csfml' 'portmidi')
makedepends=('rust' 'cargo' 'git')
provides=('vmjk')
conflicts=('vmjk')
source=("$_pkgname::git+https://github.com/suhr/vmjk.git")
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build(){
  cd $_pkgname
  sed -i "s/portmidi = \"^0.2\"/portmidi = \"=0.2.4\"/g" Cargo.toml
  env CARGO_INCREMENTAL=0 cargo build --release
}

package() {
	cd $_pkgname

	install -D -m755 "target/release/vmjk" "$pkgdir/usr/bin/vmjk"
}