summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d17b88cf33123a4cbd0fa60a49986534143af9bd (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
# Maintainer: mfw <espadonne@outlook.com>

pkgname=arco
pkgver=0.5.0
pkgrel=1
pkgdesc='Terminal-based virtual instrument playground with real-time synthesis and built-in sequencer'
arch=('x86_64')
url='https://github.com/tree3stan-chord/arcorrust'
license=('MIT')
depends=('alsa-lib')
makedepends=('rust' 'cargo' 'alsa-lib' 'pkg-config')
optdepends=('alsa-utils: for audio device testing and configuration')
source=("git+https://github.com/tree3stan-chord/arcorrust.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cd arcorrust
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --release --locked
}

check() {
    cd arcorrust
    cargo test --release --locked || true  # Allow tests to fail gracefully
}

package() {
    cd arcorrust

    # Install the binary
    install -Dm755 target/release/arco "$pkgdir/usr/bin/arco"

    # Install license
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}