summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcorey drew bruce2024-10-21 22:47:18 +1000
committercorey drew bruce2024-10-21 22:47:18 +1000
commit651fea6d47cb5e1722d4bc860d7a54526f0cbd5c (patch)
tree6abdbf65d2741e4341c19b6f6fb0b4343c2c1b0e
parent8a84dfc7c6469a7ac9bfdd9585fc2e11cf57ed2a (diff)
downloadaur-sonicthehedgehog.tar.gz
sonicthehedgehog 1.0.2-1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD25
2 files changed, 10 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 555bf8f98b59..99b4e10dee60 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = sonicthehedgehog
pkgdesc = Sonic the Hedgehog game powered by the rsdkv4 engine.
- pkgver = 1.0.0
+ pkgver = 1.0.2
pkgrel = 1
url = https://gitlab.com/linuxbombay/sonicthehedgehog
arch = x86_64
@@ -15,7 +15,7 @@ pkgbase = sonicthehedgehog
depends = sdl2
depends = unzip
depends = yad
- source = https://gitlab.com/linuxbombay/sonicthehedgehog/-/archive/1.0.0-1/sonicthehedgehog-1.0.0-1.tar
- sha256sums = 84976089f69e93393d111c49dc6691b50e3a10aced722f661cee0358ae060d7e
+ source = https://gitlab.com/linuxbombay/sonicthehedgehog/-/archive/1.0.2/sonicthehedgehog-1.0.2.tar
+ sha256sums = ecdfdb6f523dbda9b21aa31a4f048063b8a1bc21f092dd8497f44803088c7c3f
pkgname = sonicthehedgehog
diff --git a/PKGBUILD b/PKGBUILD
index 483d18f1f1b8..742e97d8e46c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=sonicthehedgehog
_pkgname=SonicTheHedgehog
-pkgver=1.0.0
+pkgver=1.0.2
pkgrel=1
pkgdesc="Sonic the Hedgehog game powered by the rsdkv4 engine."
arch=('x86_64' 'aarch64' 'i686')
@@ -8,8 +8,8 @@ url="https://gitlab.com/linuxbombay/sonicthehedgehog"
license=('GPL')
depends=('rsdkv4-bin' 'libogg' 'libvorbis' 'wget' 'sdl2' 'unzip' 'yad')
makedepends=('unzip')
-source=("https://gitlab.com/linuxbombay/sonicthehedgehog/-/archive/$pkgver-$pkgrel/sonicthehedgehog-$pkgver-$pkgrel.tar")
-sha256sums=('84976089f69e93393d111c49dc6691b50e3a10aced722f661cee0358ae060d7e')
+source=("https://gitlab.com/linuxbombay/sonicthehedgehog/-/archive/$pkgver/sonicthehedgehog-$pkgver.tar")
+sha256sums=('ecdfdb6f523dbda9b21aa31a4f048063b8a1bc21f092dd8497f44803088c7c3f')
package() {
install -dm755 "$pkgdir/usr/bin"
@@ -17,25 +17,14 @@ package() {
install -dm755 "$pkgdir/usr/share/pixmaps"
# Packaging files
-
- # Check if Data.rsdk exists so it doesn't redownload the file when it doesn't need to.
- FILE="/usr/share/games/$_pkgname/Data.rsdk"
- if test -f "$FILE"
- then
- echo "$FILE exists skipping download."
- cp -r "/usr/share/games/$_pkgname/Data.rsdk" "$pkgdir/usr/share/games/$_pkgname"
- else
- echo "$FILE does not exist, Starting download.."
- cd $srcdir/$pkgname-$pkgver-$pkgrel
- wget "https://archive.org/download/data_20231229_202312/Data.rsdk"
- fi
- cd $srcdir/$pkgname-$pkgver-$pkgrel
- cp "$srcdir/$pkgname-$pkgver-$pkgrel/sonic.sh" "$pkgdir/usr/bin/sonic"
+
+ cd $srcdir/$pkgname-$pkgver
+ cp "$srcdir/$pkgname-$pkgver/sonic.sh" "$pkgdir/usr/bin/sonic"
cp -r ./ "$pkgdir/usr/share/games/$_pkgname"
cp sonic.png "$pkgdir/usr/share/pixmaps"
# Desktop Entry
- install -Dm644 "$srcdir/$pkgname-$pkgver-$pkgrel/$_pkgname.desktop" \
+ install -Dm644 "$srcdir/$pkgname-$pkgver/$_pkgname.desktop" \
"$pkgdir/usr/share/applications/$_pkgname.desktop"
sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$_pkgname.desktop"
}