godot
This commit is contained in:
parent
d7573d1218
commit
9b2924aab5
3 changed files with 37 additions and 28 deletions
58
PKGBUILD
58
PKGBUILD
|
@ -2,36 +2,38 @@
|
||||||
pkgname=r3-game
|
pkgname=r3-game
|
||||||
pkgver=1.1.0
|
pkgver=1.1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="puzzle game set in the asteroid belt (made with pygame)"
|
pkgdesc="puzzle game set in the asteroid belt (made with godot)"
|
||||||
arch=('any')
|
arch=('x86_64' "aarch64")
|
||||||
url="https://patrice.asgardius.company/gitea/asgardius/r3"
|
url="https://patrice.asgardius.company/gitea/asgardius/r3"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('python-pygame')
|
depends=(embree3 freetype2 graphite harfbuzz harfbuzz-icu libglvnd libspeechd
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://patrice.asgardius.company/gitea/asgardius/r3/archive/$pkgver.tar.gz"
|
libsquish libtheora libvorbis libwebp libwslay libxcursor libxi
|
||||||
"local://r3.desktop"
|
libxinerama libxrandr mbedtls2 miniupnpc pcre2)
|
||||||
"local://r3.png"
|
optdepends=('pipewire-alsa: for audio support'
|
||||||
"local://r3.sh")
|
'pipewire-pulse: for audio support')
|
||||||
sha512sums=('e3fa9eb64c796bbc667436d5b0d29c878218bb0d1e016b24924f1c26e0b5e722e3a42cb85db8544137f69d90ac43484b1a03d67d3d641b54e8802d0a2cb0919c'
|
|
||||||
'3aff46474672a549aa9d37cdde6afed07c3a1953f6dfacb62ed1acfe505e9746fbd20ae67dc4565ed9fadff0d5f352fd679d937fdc618e4472979b563e4d62bf'
|
|
||||||
'2721be67ec5642e841942f84c0be118b12cb846d77eb604ba5d002004e3fccb26261b04daef745b27a4a78947dc6f5b4058ca29a314c85d88d811fed7ab895ac'
|
|
||||||
'b6b9859ddb41badaabccc3814f789de132189e56cfe4b2f6be665ff86b55a1855ac8d5f5f54378559aee353d34ed2322fa32f4caac1c85b5919175aa73d42825') #autofill using updpkgsums
|
|
||||||
|
|
||||||
build() {
|
source=("r3-game.x86_64::https://git.asgardius.company/asgardius/r3-next/releases/download/R0.1.3-beta/The%20Red%20Robot%20Radio.x86_64"
|
||||||
cd "$srcdir/r3"
|
"r3-game.arm64::https://git.asgardius.company/asgardius/r3-next/releases/download/R0.1.3-beta/The%20Red%20Robot%20Radio.arm64"
|
||||||
echo "cleaning unused files"
|
"local://r3.desktop"
|
||||||
rm -Rv "level maps" "source"
|
"r3-game.sh"
|
||||||
echo "cleanup complete"
|
"local://r3.png")
|
||||||
}
|
sha512sums=('c5f4ccd9fa7e4d89ffab3819d2cecfcb9619b0a4b10ea06bfbea5c357a8d90d0b51f15d4858540a5392de2fbad6d90a9827f134b69c32e9edbfa6460a0825d15'
|
||||||
|
'5865cdbeee52cbab084bad1a184f3a917daf244eec6d32706fe694baac6d66dab41b5997643b3fc8ded44b40b4e1246e39e3bdbd0703f18fb37843926fca0ed0'
|
||||||
|
'3aff46474672a549aa9d37cdde6afed07c3a1953f6dfacb62ed1acfe505e9746fbd20ae67dc4565ed9fadff0d5f352fd679d937fdc618e4472979b563e4d62bf'
|
||||||
|
'f7344601ca43e09e5d6dadadfe3bcf354481c28253d5bdc3da028b9fd314ba6b36c07ccddeabef06a83e287d1e99f6796a3a402b115ba16ccea28f3141b32f88'
|
||||||
|
'509aca25f7d7e10e2a66516de524f287f6f10f718aa6fb443f65cab782f9a39bc8893406353ff95cf3068c4566ef6aa8c89053eae423e266c273b3316fdde9d4') #autofill using updpkgsums
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/r3"
|
# Install Game executable and data files
|
||||||
mkdir -p $pkgdir/opt/r3-game
|
install -D -m 755 "${srcdir}/r3-game.sh" "$pkgdir/usr/bin/r3-game"
|
||||||
mkdir -p $pkgdir/usr/share/applications
|
mkdir -p "$pkgdir/opt/virtualx"
|
||||||
mkdir -p $pkgdir/usr/share/icons/hicolor/apps
|
cp "r3-game.x86_64" "$pkgdir/opt/virtualx/r3-game.x86_64"
|
||||||
mkdir -p $pkgdir/usr/bin
|
cp "r3-game.arm64" "$pkgdir/opt/virtualx/r3-game.arm64"
|
||||||
cp -Rv * $pkgdir/opt/r3-game
|
chmod 755 "$pkgdir/opt/virtualx"
|
||||||
cp -v ../r3.sh $pkgdir/usr/bin/r3-game
|
|
||||||
chmod +x $pkgdir/usr/bin/r3-game
|
# Install icon
|
||||||
cp -v ../r3.desktop $pkgdir/usr/share/applications/r3-game.desktop
|
install -D -m 644 "${srcdir}/r3.png" "$pkgdir/usr/share/icons/hicolor/apps/r3-game.png"
|
||||||
cp -v ../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"
|
||||||
|
}
|
||||||
|
|
7
r3-game.sh
Executable file
7
r3-game.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd /opt/virtualx/
|
||||||
|
if uname -m | grep -q 'x86_64'; then
|
||||||
|
./r3-game.x86_64
|
||||||
|
else
|
||||||
|
./r3-game.arm64
|
||||||
|
fi
|
BIN
r3.png
BIN
r3.png
Binary file not shown.
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 69 KiB |
Loading…
Reference in a new issue