virtualxrpg-arch/PKGBUILD

37 lines
No EOL
1.5 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 pygame)"
arch=('any')
url="https://patrice.asgardius.company/gitea/asgardius/r3"
license=('GPL')
depends=('python-pygame')
source=("$pkgname-$pkgver.tar.gz::https://patrice.asgardius.company/gitea/asgardius/r3/archive/$pkgver.tar.gz"
"local://r3.desktop"
"local://r3.png"
"local://r3.sh")
sha512sums=('e3fa9eb64c796bbc667436d5b0d29c878218bb0d1e016b24924f1c26e0b5e722e3a42cb85db8544137f69d90ac43484b1a03d67d3d641b54e8802d0a2cb0919c'
'3aff46474672a549aa9d37cdde6afed07c3a1953f6dfacb62ed1acfe505e9746fbd20ae67dc4565ed9fadff0d5f352fd679d937fdc618e4472979b563e4d62bf'
'2721be67ec5642e841942f84c0be118b12cb846d77eb604ba5d002004e3fccb26261b04daef745b27a4a78947dc6f5b4058ca29a314c85d88d811fed7ab895ac'
'b6b9859ddb41badaabccc3814f789de132189e56cfe4b2f6be665ff86b55a1855ac8d5f5f54378559aee353d34ed2322fa32f4caac1c85b5919175aa73d42825') #autofill using updpkgsums
build() {
cd "$srcdir/r3"
echo "cleaning unused files"
rm -Rv "level maps" "source"
echo "cleanup complete"
}
package() {
cd "$srcdir/r3"
mkdir -p $pkgdir/opt/r3-game
mkdir -p $pkgdir/usr/share/applications
mkdir -p $pkgdir/usr/share/icons/hicolor/apps
mkdir -p $pkgdir/usr/bin
cp -Rv * $pkgdir/opt/r3-game
cp -v ../r3.sh $pkgdir/usr/bin/r3-game
chmod +x $pkgdir/usr/bin/r3-game
cp -v ../r3.desktop $pkgdir/usr/share/applications/r3-game.desktop
cp -v ../r3.png $pkgdir/usr/share/icons/hicolor/apps/r3-game.png
}