blob: b9c60df49e15b5d26794ce3e8c2d21294b1735ea (
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
48
49
50
51
52
|
# Maintainer: Accessory
_exe_name=minus_games_client
pkgname=$_exe_name-git
pkgver=0.5.4
_source_folder=$pkgname-$pkgver
pkgrel=1
epoch=
pkgdesc="Minus Games Client"
arch=("x86_64")
url="https://github.com/Accessory/minus_games"
license=('MIT')
groups=()
depends=()
makedepends=(cargo)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$_source_folder::git+$url#branch=main")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd $_source_folder
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
sed -i "s/Exec=run.sh/Exec=minus_games_client menu/g" "$_source_folder/other/assets/client/console/io.github.accessory.minus_games_client.desktop"
cd $_source_folder
cargo build --release --bin $_exe_name
}
check() {
echo "No tests"
}
package() {
install -Dm0755 -t "$pkgdir/usr/bin/" "$_source_folder/target/release/$_exe_name"
install -Dm0644 "$_source_folder/other/assets/common/io.github.accessory.minus_games.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/io.github.accessory.minus_games_client.svg"
install -Dm0644 "$_source_folder/other/assets/client/console/io.github.accessory.minus_games_client.desktop" $pkgdir/usr/share/applications/io.github.accessory.minus_games_client.desktop
install -Dm0644 "$_source_folder/other/assets/client/console/io.github.accessory.minus_games_client.metainfo.xml" "$pkgdir/usr/share/metainfo/io.github.accessory.minus_games_client.metainfo.xml"
}
|