r3-arch/PKGBUILD

38 lines
No EOL
1.4 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=$pkgver"
"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"
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
}