commit 820c2de574767400974e5a5227e2878398006e1c Author: xDShot Date: Sun May 12 21:39:20 2019 +0300 initial diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..ca56749 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = quakespasm-spiked-git + pkgdesc = A modern Quake 1 engine. Forked from Quakespasm. AKA QSS. Git version with optional Mission pack desktop files. + pkgver = 0.92.1.r332.gd7f84a92 + pkgrel = 1 + url = http://triptohell.info/moodles/qss/ + install = quakespasm.install + arch = i686 + arch = x86_64 + license = GPL2 + depends = libvorbis + depends = libmad + depends = sdl2 + provides = quakespasm + conflicts = quakespasm + conflicts = quakespasm-svn + source = quakespasm::git+https://github.com/Shpoike/Quakespasm + source = quakespasm.desktop + source = quakespasm-mp1.desktop + source = quakespasm-mp2.desktop + source = quakespasm-impel.desktop + sha1sums = SKIP + sha1sums = 7a78889a7a6e24047b4777a8b4827e29cfc87381 + sha1sums = 2b774f68f889308ba0b8de69580a32ed11f833ec + sha1sums = 1184a40775fc46c129828d4a9a35785542c62ee3 + sha1sums = 2c97f722fc5c9f8d8f1a9a01f55491a448a9253e + +pkgname = quakespasm-spiked-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a3ad52f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Based on quakespasm PKGBUILD + +_pkgname=quakespasm +pkgname=${_pkgname}-spiked-git +pkgver=0.92.1.r332.gd7f84a92 +pkgrel=1 +pkgdesc="A modern Quake 1 engine. Forked from Quakespasm. AKA QSS. Git version with optional Mission pack desktop files." +arch=('i686' 'x86_64') +url="http://triptohell.info/moodles/qss/" +license=('GPL2') +depends=('libvorbis' 'libmad' 'sdl2') +conflicts=('quakespasm' 'quakespasm-svn') +provides=('quakespasm') +install=$_pkgname.install +source=("${_pkgname}::git+https://github.com/Shpoike/Quakespasm" + $_pkgname.desktop + $_pkgname-mp1.desktop + $_pkgname-mp2.desktop + $_pkgname-impel.desktop) +sha1sums=('SKIP' + '7a78889a7a6e24047b4777a8b4827e29cfc87381' + '2b774f68f889308ba0b8de69580a32ed11f833ec' + '1184a40775fc46c129828d4a9a35785542c62ee3' + '2c97f722fc5c9f8d8f1a9a01f55491a448a9253e') + +# Using the most recent un-annotated tag reachable from the last commit: +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$_pkgname/$_pkgname/Quake/" + msg "Starting make..." + make DO_USERDIRS=1 USE_SDL2=1 +} + +package() { + cd "$srcdir/$_pkgname/$_pkgname/Quake/" + install -Dm755 quakespasm "$pkgdir"/usr/bin/$_pkgname + + for i in 16 24 32 48 64 72; do + install -Dm644 $srcdir/$_pkgname/$_pkgname/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/quakespasm.png + done + + install -Dm644 $srcdir/$_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop +# +# Uncomment lines depending on the mission pack(s) +# or extension you have. +# +# install -Dm644 $srcdir/$_pkgname-mp1.desktop $pkgdir/usr/share/applications/$_pkgname-mp1.desktop +# install -Dm644 $srcdir/$_pkgname-mp2.desktop $pkgdir/usr/share/applications/$_pkgname-mp2.desktop +# install -Dm644 $srcdir/$_pkgname-impel.desktop $pkgdir/usr/share/applications/$_pkgname-impel.desktop + +} + + diff --git a/quakespasm-impel.desktop b/quakespasm-impel.desktop new file mode 100644 index 0000000..0b17efb --- /dev/null +++ b/quakespasm-impel.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Quake - Abyss of Pandemonium +Icon=quakespasm +Exec=quakespasm -game impel +Categories=Game;Shooter; +Comment=Quake (quakespasm engine) + Abyss of Pandemonium +Terminal=false +StartupNotify=true diff --git a/quakespasm-mp1.desktop b/quakespasm-mp1.desktop new file mode 100644 index 0000000..f6d881e --- /dev/null +++ b/quakespasm-mp1.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Quake - MP 1 +Icon=quakespasm +Exec=quakespasm -game hipnotic +Categories=Game;Shooter; +Comment=Quake (quakespasm engine) + Mission Pack 1 +Terminal=false +StartupNotify=true diff --git a/quakespasm-mp2.desktop b/quakespasm-mp2.desktop new file mode 100644 index 0000000..1f6f87e --- /dev/null +++ b/quakespasm-mp2.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Quake - MP 2 +Icon=quakespasm +Exec=quakespasm -game rogue +Categories=Game;Shooter; +Comment=Quake (quakespasm engine) + Mission Pack 2 +Terminal=false +StartupNotify=true diff --git a/quakespasm.desktop b/quakespasm.desktop new file mode 100644 index 0000000..0a0b2a3 --- /dev/null +++ b/quakespasm.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Quake +Icon=quakespasm +Exec=quakespasm +Categories=Game;Shooter; +Comment=Quake (quakespasm engine) +Terminal=false +StartupNotify=true diff --git a/quakespasm.install b/quakespasm.install new file mode 100644 index 0000000..8b4e0fe --- /dev/null +++ b/quakespasm.install @@ -0,0 +1,26 @@ +post_install() { + cat <<- EOF + :: You need the Quake data (.pak) files to play. + :: pak0.pak to play the shareware episode and/or + :: additionally pak1.pak for the whole game. + :: Put them into /.quakespasm/id1/ + + :: If you have uncommented line in package(), + :: Here is how to install MPs and extensions. + + :: There is desktop file for Mission Pack 1 (hipnotic) + :: Mission Pack 2 (rogue) + :: and for Abyss of Pandemonium (impel) + :: You need to copy paks for each extension in + :: /.quakespasm/hipnotic (for Mission pack 1) + :: /.quakespasm/rogue (for Mission pack 2) + :: /.quakespasm/impel (for Abyss of Pandemonium) + + :: The last one can be grabbed for free from : + :: https://www.quaddicted.com/reviews/aopfm_v2.html + EOF +} + +post_upgrade() { + post_install $1 +}