diff options
author | swz-git | 2022-05-18 00:40:45 +0200 |
---|---|---|
committer | swz-git | 2022-06-07 20:05:57 +0200 |
commit | ed12dd506195d10dcffda5f51f8cd2f18edb7a88 (patch) | |
tree | f8b243a611f79bd9182204c2573c6d28acda3908 | |
download | aur-ed12dd506195d10dcffda5f51f8cd2f18edb7a88.tar.gz |
rebase
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c361b4fc882c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = rlbot-gui-rust-git + pkgdesc = A Rust GUI for the RLBot framework + pkgver = 0.1.0.55dc73b + pkgrel = 1 + url = https://github.com/VirxEC/rlbot_gui_rust + arch = x86_64 + license = custom + makedepends = cargo + makedepends = git + makedepends = sed + depends = python + source = git+https://github.com/VirxEC/rlbot_gui_rust + sha512sums = SKIP + +pkgname = rlbot-gui-rust-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9c6e8ad1a5d5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Simon <contact@swz.works> +pkgname=rlbotgui-rust-git +git_pkgname=rlbot_gui_rust +cargo_pkgname=rlbot_gui +pkgver=0.1.0.55dc73b +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 "$(cargo pkgid | sed "s/^.*://").$(git rev-parse --short HEAD)" +} |