This commit is contained in:
xDShot 2019-05-12 21:39:20 +03:00
commit 820c2de574
7 changed files with 147 additions and 0 deletions

28
.SRCINFO Normal file
View File

@ -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

57
PKGBUILD Normal file
View File

@ -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
}

9
quakespasm-impel.desktop Normal file
View File

@ -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

9
quakespasm-mp1.desktop Normal file
View File

@ -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

9
quakespasm-mp2.desktop Normal file
View File

@ -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

9
quakespasm.desktop Normal file
View File

@ -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

26
quakespasm.install Normal file
View File

@ -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 <YOUR_HOME_DIR>/.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
:: <YOUR_HOME_DIR>/.quakespasm/hipnotic (for Mission pack 1)
:: <YOUR_HOME_DIR>/.quakespasm/rogue (for Mission pack 2)
:: <YOUR_HOME_DIR>/.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
}