summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d5deaeefe237e6c0a051493ade8394c69668e27 (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
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>

pkgname=chromatic
pkgver=0.1.2
pkgrel=2   
pkgdesc="Fine-tune your instruments"
url="https://github.com/nate-xyz/chromatic"
arch=('x86_64' 'aarch64')
license=('GPL3')
depends=('libadwaita' 'libpulse' 'portaudio')
makedepends=('cargo' 'git' 'meson')
checkdepends=('appstream-glib')
_commit=fe9d34e3cb30a045b95aa76f8cc4e3193903e262
source=("git+$url.git#commit=$_commit")
sha256sums=('SKIP')

prepare() {
  cd $pkgname
  export CARGO_HOME="$srcdir/CARGO_HOME"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --target "$CARCH-unknown-linux-gnu"
}

build() {
  export CARGO_HOME="$srcdir/CARGO_HOME"
  export RUSTUP_TOOLCHAIN=stable
  arch-meson $pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs || :
}

package() {
  meson install -C build --no-rebuild --destdir "$pkgdir"
}