summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56e8c7fb863d2e7dcef5c2fccb239e14ae6952d9 (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
# Maintainer: Polarian <polarian@polarian.dev>

pkgname="davis"
pkgver="0.1.3"
pkgrel=1
pkgdesc="CLI client for mpd, written in rust"
arch=("x86_64")
url="https://github.com/SimonPersson/davis"
license=("GPL3")
makedepends=("cargo")
optdepends=("mpd: Music daemon davis interfaces with")
source=("davis-$pkgver.tar.gz::https://github.com/SimonPersson/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('6ed85fbc7bd74b4f355aa6fd5b1956bc8c4c4da1041396b1a2af9d507866e95a')

prepare() {
    cd "davis-$pkgver" && cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

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

package() {
    install -Dm755 "davis-$pkgver/target/release/davis" "$pkgdir/usr/bin/davis"
}