summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba9f0f086cb6ec51d7f284076f6f6e8727fc0078 (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
# Maintainer: Noa Himesaka <himesaka AT noa DOT codes>
pkgname=roon-tui
pkgver=0.3.0
pkgrel=1
pkgdesc="A Roon Remote for the terminal"
url="https://github.com/TheAppgineer/roon-tui"
arch=('x86_64')
license=('MIT')
makedepends=('git' 'cargo')
source=("git+https://github.com/TheAppgineer/roon-tui.git#tag=$pkgver")
sha256sums=('SKIP')

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

build() {
    cd "$pkgname"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

package() {
	# Install binary
	install -Dm755 "$pkgname/target/release/roon-tui" "$pkgdir/usr/bin/roon-tui"
}