summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bacbf58f66bf0841f5caee34378ba0357b3a3af0 (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
38
39
# Maintainer: Jadelynn Cheatum <cheatumj@proton.me>
pkgname=rmup
pkgver=0.9.7
pkgrel=1
pkgdesc="A TUI music player written in Rust"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://gitlab.com/jcheatum/rmup"
license=('MPL-2.0')
groups=()
depends=(glibc gcc-libs alsa-lib)
makedepends=(cargo)
provides=("$pkgname")
conflicts=("$pkgname")
replaces=()
backup=()
options=()
install=
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
noextract=()
md5sums=('SKIP')

prepare() {
    cd "$pkgname-$pkgver"
    export RUSTUP_TOOLCHAIN=stable
    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

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

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 'target/release/rmup' "$pkgdir/usr/bin/rmup"
    install -Dm644 'README.md' "$pkgdir/usr/share/doc/$pkgname/README.md"
}