summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a348e77eb1859a9c9bc78c8fe17bf9cddfc35187 (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
40
41
42
43
44
45
46
47
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=cmus-rpc-rs
pkgver=0.2.0
pkgrel=1
epoch=
pkgdesc="A Discord Rich Presence for cmus player using rust 🦀💙"
arch=(x86_64)
url="https://github.com/anas-elgarhy/cmus-rpc-rs"
license=('MIT')
groups=()
depends=(cmus)
makedepends=(cargo)
checkdepends=()
optdepends=()
provides=(cmus-rpc-rs)
conflicts=()
replaces=(cmus-rpc-rs)
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
noextract=()

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

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

check() {
  cd "$pkgname-$pkgver"
	export RUSTUP_TOOLCHAIN=stable
  cargo test --frozen --all-features
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm0755 "$pkgdir/usr/bin/" "target/release/$pkgname"
}
sha256sums=('c95ee1e06f0fca3383deeae16aaf2fcd98d2ee3593c4843e2c61e87600ca004f')