Last active
January 16, 2022 19:25
-
-
Save lightspot21/94b66cb0bd447870526bc97525fc5c6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fbdc17e90c4c688b0251d0b434c9bdecfe71b9ac Mon Sep 17 00:00:00 2001 | |
From: Grigoris Pavlakis <aur.archlinux.org/account/lightspot21> | |
Date: Sun, 16 Jan 2022 21:18:07 +0200 | |
Subject: [PATCH] Patch pkgbuild to use FullTilt Win95 assets | |
--- | |
PKGBUILD | 18 ++++++++++-------- | |
1 file changed, 10 insertions(+), 8 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index c976c5c..dfc41b9 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -6,24 +6,24 @@ pkgver=2.0.1.r5.g8f34829 | |
pkgrel=3 | |
arch=('x86_64' 'i686' 'pentium4' 'aarch64' 'armv7h' 'armv6h') | |
depends=('sdl2' 'sdl2_mixer') | |
-makedepends=('unrar' 'cmake' 'git') | |
+makedepends=('p7zip' 'cmake' 'git') | |
optdepends=('freepats-general-midi: Soundfont for playing background music') | |
provides=("$_pkgname") | |
conflicts=("$_pkgname") | |
license=('MIT' 'proprietary') | |
-noextract=('Space_Cadet.rar') | |
+noextract=('Full tilt pinball.iso') | |
url="https://github.com/k4zmu2a/SpaceCadetPinball" | |
source=( | |
- 'https://archive.org/download/SpaceCadet_Plus95/Space_Cadet.rar' | |
+ 'https://archive.org/download/full-tilt-pinball/Full tilt pinball.iso' | |
"$pkgname::git+$url" | |
'spacecadetpinball.desktop' | |
) | |
-sha256sums=('3cc5dfd914c2ac41b03f006c7ccbb59d6f9e4c32ecfd1906e718c8e47f130f4a' | |
+sha256sums=('a81b5d31ecd0c903e52f019f546beec44667b4c5695204fd080502cd5b94a865' | |
'SKIP' | |
'SKIP') | |
prepare() { | |
- unrar e -y Space_Cadet.rar Space_Cadet/ | |
+ 7z x -y Full\ tilt\ pinball.iso -o$srcdir/FullTilt/ | |
} | |
pkgver() { | |
@@ -60,9 +60,11 @@ cd /usr/lib/$_pkgname | |
exec ./$_pkgname "\$@" | |
END | |
# Install resources | |
- cd Space_Cadet | |
- install -m0644 *.DAT *.DOC *.MID *.BMP *.INF *.WAV -t "$pkgdir/usr/lib/$_pkgname" | |
- cd .. | |
+ cd $srcdir/FullTilt/WIN95/FULLTILT/CADET/ | |
+ install -m0644 CADET.DAT -t "$pkgdir/usr/lib/$_pkgname" | |
+ install -Dm0644 SOUND/* -t "$pkgdir/usr/lib/$_pkgname/SOUND" | |
+ cd $srcdir | |
# Install icon | |
install -Dm0644 "$pkgname/SpaceCadetPinball/Icon_1.ico" "$pkgdir/usr/lib/$_pkgname/icon.ico" | |
# Install desktop launcher | |
-- | |
2.34.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment