summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52a3f16aad46ea5b997300fbd1248352a3b4855a (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
# Maintainer: rfvgyhn

pkgname=proton-usage
pkgver=0.2.0
pkgrel=1
pkgdesc="Lists Steam applications that have specified a Steam Play compatibility tool"
arch=("x86_64")
url="https://github.com/rfvgyhn/proton-usage"
license=("MIT")
provides=("proton-usage")
conflicts=("proton-usage")
makedepends=("cargo")
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
changelog=CHANGELOG.md
sha256sums=('22587528b1c541834d9747270676d43a977355829f2c93f74c13016ed7321c14')

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 --release --frozen --all-features
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}