r3-arch/PKGBUILD
2022-04-24 18:27:32 -07:00

38 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=('x86_64' 'aarch64')
url="https://patrice.asgardius.company/gitea/asgardius/r3"
license=('GPL')
depends=('python-pygame')
source=("$pkgname-$pkgver::git+https://patrice.asgardius.company/gitea/asgardius/r3.git#tag=1.1.0"
"local://r3.desktop"
"local://r3.png"
"local://r3.sh")
noextract=()
sha512sums=('SKIP'
'3aff46474672a549aa9d37cdde6afed07c3a1953f6dfacb62ed1acfe505e9746fbd20ae67dc4565ed9fadff0d5f352fd679d937fdc618e4472979b563e4d62bf'
'2721be67ec5642e841942f84c0be118b12cb846d77eb604ba5d002004e3fccb26261b04daef745b27a4a78947dc6f5b4058ca29a314c85d88d811fed7ab895ac'
'b6b9859ddb41badaabccc3814f789de132189e56cfe4b2f6be665ff86b55a1855ac8d5f5f54378559aee353d34ed2322fa32f4caac1c85b5919175aa73d42825') #autofill using updpkgsums
build() {
cd "$pkgname-$pkgver"
echo "cleaning unused files"
rm -Rv "level maps" "source"
echo "cleanup complete"
}
package() {
cd "$pkgname-$pkgver"
sudo mkdir -p $pkgdir/opt/r3-game
sudo mkdir -p $pkgdir/usr/share/applications
sudo mkdir -p $pkgdir/usr/share/icons/hicolor/apps
sudo mkdir -p $pkgdir/usr/bin
sudo cp -Rv * $pkgdir/opt/r3-game
sudo cp -v ../r3.sh $pkgdir/usr/bin/r3-game
sudo chmod +x $pkgdir/usr/bin/r3-game
sudo cp -v ../r3.desktop $pkgdir/usr/share/applications/r3-game.desktop
sudo cp -v ../r3.png $pkgdir/usr/share/icons/hicolor/apps/r3-game.png
}