summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD44
-rw-r--r--suave18
-rw-r--r--suave.desktop11
4 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..23e84e4d2df
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = suave
+ pkgdesc = Sport Utility Assault Vehicle Extreme. Drive very small, but very brave tank.
+ pkgver = 2.0
+ pkgrel = 1
+ url = https://archive.org/details/Sport-Utility_Assault_Vehicle_Extreme
+ arch = i686
+ arch = x86_64
+ license = custom:freeware
+ makedepends = innoextract
+ makedepends = p7zip
+ makedepends = imagemagick
+ depends = wine
+ depends = lib32-libpulse
+ noextract = Suave_Installer_20.exe
+ source = https://archive.org/download/Sport-Utility_Assault_Vehicle_Extreme/Suave_Installer_20.exe
+ source = suave
+ source = suave.desktop
+ md5sums = 4274086d09d0d2fdfc457eec177ab986
+ md5sums = 36c8c49d95b8b40bb1a468807dfbe32d
+ md5sums = 329abcc1e285ccd9c560781d495a1788
+ sha256sums = 1fac1941630f63f9721883cc3b7650ab93666785a2d05e6ad0d5c6396fe29f39
+ sha256sums = c1ef0d28257c3cac0f0c83be6bf0e1becbfcccb3c8b074c551b8b1a986e0ad8b
+ sha256sums = 1fbd25762e6e8cfb400204439c96461dd3daf4f5601994f096999665bfb2ce96
+
+pkgname = suave
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2e0396ec85c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Contributor: Vladimir Navrat <vn158 at seznam dot cz>
+
+pkgname=suave
+pkgver=2.0
+pkgrel=1
+pkgdesc="Sport Utility Assault Vehicle Extreme. Drive very small, but very brave tank."
+arch=('i686' 'x86_64')
+license=('custom:freeware')
+url="https://archive.org/details/Sport-Utility_Assault_Vehicle_Extreme"
+depends=(wine lib32-libpulse)
+makedepends=(innoextract p7zip imagemagick)
+source=("https://archive.org/download/Sport-Utility_Assault_Vehicle_Extreme/Suave_Installer_20.exe" suave suave.desktop)
+noextract=("Suave_Installer_20.exe")
+
+md5sums=('4274086d09d0d2fdfc457eec177ab986'
+ '36c8c49d95b8b40bb1a468807dfbe32d'
+ '329abcc1e285ccd9c560781d495a1788')
+sha256sums=('1fac1941630f63f9721883cc3b7650ab93666785a2d05e6ad0d5c6396fe29f39'
+ 'c1ef0d28257c3cac0f0c83be6bf0e1becbfcccb3c8b074c551b8b1a986e0ad8b'
+ '1fbd25762e6e8cfb400204439c96461dd3daf4f5601994f096999665bfb2ce96')
+
+prepare() {
+ cd ${startdir}/src
+ innoextract Suave_Installer_20.exe
+ cd app
+ 7z e SUAVE.exe 50.ico -r -y
+ convert 50.ico ../suave.png
+}
+
+package() {
+ cd ${startdir}/src/app
+ find . -type f -name "*" | while read file; do
+ echo $file
+ install -m 644 -D "${file}" "$pkgdir/usr/share/$pkgname/${file#source/}"
+ done
+
+ # Install startup script
+ cd ${startdir}/src
+ install -m 755 -D "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ # Install desktop file
+ install -m644 -D ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ # Install desktop icon
+ install -m644 -D ${pkgname}.png "${pkgdir}/usr/share/${pkgname}"
+}
diff --git a/suave b/suave
new file mode 100644
index 00000000000..b792a7c193f
--- /dev/null
+++ b/suave
@@ -0,0 +1,18 @@
+#!/bin/bash
+APPLICATION=suave
+CONFIG_DIR="$HOME/.${APPLICATION}"
+
+export WINEPREFIX="${CONFIG_DIR}"
+export WINEDLLOVERRIDES="mscoree,mshtml,winemp3.acm="
+
+if [ ! -d "${WINEPREFIX}" ] ; then
+ mkdir -p "${WINEPREFIX}/${APPLICATION}/Levels" || exit 1
+ wineboot -u
+ ln -sf "/usr/share/${APPLICATION}/SUAVE.exe" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ ln -sf "/usr/share/${APPLICATION}/Data1.pak" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ ln -sf "/usr/share/${APPLICATION}/Data2.pak" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ cp -rf /usr/share/${APPLICATION}/Levels/* "${WINEPREFIX}/${APPLICATION}/Levels" || exit 1
+fi
+
+wine "${CONFIG_DIR}/${APPLICATION}/SUAVE.exe" "$@"
+
diff --git a/suave.desktop b/suave.desktop
new file mode 100644
index 00000000000..00a3bcf013e
--- /dev/null
+++ b/suave.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=S.U.A.V.E.
+GenericName=Sport-Utility Assault Vehicle Extreme
+Comment=
+Exec=/usr/bin/suave
+Icon=/usr/share/suave/suave.png
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Application;Game