makedeb
Futuristic anti-gravity racing game. A re-implementation of the 1995 game wipEout.
Click here to go back to the commit logs for wipeout-git.
Hash: 1979c15ddfe137314dd9f31ec511f4e4d725d4fc
Message: remove save hack
diff --git a/.SRCINFO b/.SRCINFO
index b747e96..e4dfb54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = wipeout-git
pkgbase = wipeout-git
pkgdesc = Futuristic anti-gravity racing game. A re-implementation of the 1995 game wipEout.
pkgrel = 1
-pkgver = 0.r42.0594285
+pkgver = 0.r68.90702ce
url = https://phoboslab.org/log/2023/08/rewriting-wipeout
arch = amd64
conflicts = wipeout
diff --git a/PKGBUILD b/PKGBUILD
index 414c982..afe76ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=wipeout-git
_pkgname=wipeout
_srcname=wipeout-rewrite
-pkgver=0.r42.0594285
+pkgver=0.r68.90702ce
pkgrel=1
pkgdesc="Futuristic anti-gravity racing game. A re-implementation of the 1995 game wipEout."
arch=('amd64')
@@ -33,6 +33,7 @@ pkgver() {
build() {
cd ${srcdir}/${_srcname}
+ # bug DPATH_ASSETS missing intro, compilling with it but will not use
# sdl
make USER_CFLAGS="-DPATH_ASSETS=/usr/share/games/" DEBUG=false USE_GLX=false RENDERER=GL sdl
# sokol
@@ -42,18 +43,19 @@ build() {
package() {
cd ${srcdir}/${_srcname}
#Creating Directories
- install -m755 -d $pkgdir/usr/{games,libexec,share/{doc/${_pkgname},games,pixmaps,applications}}
+ install -m755 -d $pkgdir/usr/{games,libexec/${_pkgname},share/{doc/${_pkgname},games,pixmaps,applications}}
# Installing
- install -D -m755 $srcdir/${_srcname}/wipegame $pkgdir/usr/libexec/${_pkgname}
+ install -D -m755 $srcdir/${_srcname}/wipegame $pkgdir/usr/libexec/${_pkgname}/${_pkgname}-bin
+# install -D -m755 $srcdir/${_srcname}/wipegame $pkgdir/usr/games/${_pkgname}
cp -R $srcdir/${_pkgname} $pkgdir/usr/share/games/
install -D -m644 $srcdir/${_srcname}/README.md $pkgdir/usr/share/doc/${_pkgname}/readme
install -D -m644 $srcdir/${_pkgname}.png $pkgdir/usr/share/pixmaps/$_pkgname.png
+ # linking
+ ln -s /usr/share/games/${_pkgname} $pkgdir/usr/libexec/${_pkgname}/
# Adjustments
rm $pkgdir/usr/share/games/${_pkgname}/game_data_goes_here.txt
- strip --strip-all "$pkgdir/usr/libexec/${_pkgname}"
- _md5checksum="$(md5sum "$pkgdir/usr/libexec/${_pkgname}" | sed "s!$pkgdir/usr/libexec/${_pkgname}!$_pkgname-bin!")"
# Desktop file
echo "[Desktop Entry]
@@ -75,18 +77,7 @@ Categories=Application;Game" > $pkgdir/usr/share/applications/wipeout.desktop
# Wrapper script
echo "#!/bin/sh
-config_dir=\"\${XDG_CONFIG_HOME:-\$HOME/.config}/${_pkgname}\"
-md5checksum=\"$_md5checksum\"
-
-if [ ! -e \$config_dir/$_pkgname ]; then
- mkdir -p \"\$config_dir\"
- ln -s /usr/share/games/${_pkgname} \$config_dir/
-fi
-
-cd \$config_dir
-
-echo \"\$md5checksum\" | md5sum -c --status || cp /usr/libexec/${_pkgname} ${_pkgname}-bin
-
+cd \"/usr/libexec/${_pkgname}\"
exec ./${_pkgname}-bin" > $pkgdir/usr/games/wipeout
chmod 755 $pkgdir/usr/games/wipeout
}