summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04612cb42ec38b4d57547f5009eddf6302011f99 (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
# Maintainer: Simon <contact@swz.works>
pkgname=rlbotgui-rust-git
git_pkgname=rlbot_gui_rust
cargo_pkgname=rlbot_gui
pkgver=0.1.0.b10b749
pkgrel=1
pkgdesc="A Rust GUI for the RLBot framework"
arch=("x86_64")
url="https://github.com/VirxEC/rlbot_gui_rust"
replaces=("rlbot-gui-rust-git")

depends=("python")
makedepends=("cargo" "git" "sed")

license=("custom")

source=("git+https://github.com/VirxEC/rlbot_gui_rust")
sha512sums=(SKIP)

build() {
  cd "$srcdir/$git_pkgname/tauri-src"
  cargo build --release --target-dir target
}

package() {
  cd "$srcdir/$git_pkgname/tauri-src"

  install -Dm755 target/release/$cargo_pkgname "${pkgdir}/usr/bin/$cargo_pkgname"
}

pkgver() {
  cd "$srcdir/$git_pkgname/tauri-src"
  echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-parse --short HEAD)"
}