virtualxrpg-arch/PKGBUILD
2024-07-20 07:47:41 -07:00

39 lines
2.1 KiB
Bash

# Maintainer: Page Asgardius <asgardius@asgardius.company>
pkgname=r3-game
pkgver=1.1.0
pkgrel=1
pkgdesc="puzzle game set in the asteroid belt (made with godot)"
arch=('x86_64' "aarch64")
url="https://patrice.asgardius.company/gitea/asgardius/r3"
license=('GPL')
depends=(embree3 freetype2 graphite harfbuzz harfbuzz-icu libglvnd libspeechd
libsquish libtheora libvorbis libwebp libwslay libxcursor libxi
libxinerama libxrandr mbedtls2 miniupnpc pcre2)
optdepends=('pipewire-alsa: for audio support'
'pipewire-pulse: for audio support')
source=("r3-game.x86_64::https://git.asgardius.company/asgardius/r3-next/releases/download/R0.1.3-beta/The%20Red%20Robot%20Radio.x86_64"
"r3-game.arm64::https://git.asgardius.company/asgardius/r3-next/releases/download/R0.1.3-beta/The%20Red%20Robot%20Radio.arm64"
"local://r3.desktop"
"r3-game.sh"
"local://r3.png")
sha512sums=('c5f4ccd9fa7e4d89ffab3819d2cecfcb9619b0a4b10ea06bfbea5c357a8d90d0b51f15d4858540a5392de2fbad6d90a9827f134b69c32e9edbfa6460a0825d15'
'5865cdbeee52cbab084bad1a184f3a917daf244eec6d32706fe694baac6d66dab41b5997643b3fc8ded44b40b4e1246e39e3bdbd0703f18fb37843926fca0ed0'
'3aff46474672a549aa9d37cdde6afed07c3a1953f6dfacb62ed1acfe505e9746fbd20ae67dc4565ed9fadff0d5f352fd679d937fdc618e4472979b563e4d62bf'
'f7344601ca43e09e5d6dadadfe3bcf354481c28253d5bdc3da028b9fd314ba6b36c07ccddeabef06a83e287d1e99f6796a3a402b115ba16ccea28f3141b32f88'
'509aca25f7d7e10e2a66516de524f287f6f10f718aa6fb443f65cab782f9a39bc8893406353ff95cf3068c4566ef6aa8c89053eae423e266c273b3316fdde9d4') #autofill using updpkgsums
package() {
# Install Game executable and data files
install -D -m 755 "${srcdir}/r3-game.sh" "$pkgdir/usr/bin/r3-game"
mkdir -p "$pkgdir/opt/virtualx"
cp "r3-game.x86_64" "$pkgdir/opt/virtualx/r3-game.x86_64"
cp "r3-game.arm64" "$pkgdir/opt/virtualx/r3-game.arm64"
chmod 755 "$pkgdir/opt/virtualx"
# Install icon
install -D -m 644 "${srcdir}/r3.png" "$pkgdir/usr/share/icons/hicolor/apps/r3-game.png"
# Install .desktop file
install -D -m 644 "${srcdir}/r3.desktop" "${pkgdir}/usr/share/applications/r3-game.desktop"
}