make compatible with quakespasm package
This commit is contained in:
parent
c65f17db09
commit
f1b60d4035
58
PKGBUILD
58
PKGBUILD
|
@ -1,57 +1,45 @@
|
||||||
# Based on quakespasm PKGBUILD
|
_pkgname=quakespasm-spiked
|
||||||
|
pkgname=${_pkgname}-git
|
||||||
_pkgname=quakespasm
|
|
||||||
pkgname=${_pkgname}-spiked-git
|
|
||||||
pkgver=0.92.1.r332.gd7f84a92
|
pkgver=0.92.1.r332.gd7f84a92
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A modern Quake 1 engine. Forked from Quakespasm. AKA QSS. Git version with optional Mission pack desktop files."
|
pkgdesc="A modern Quake 1 engine. Forked from Quakespasm. AKA QSS. Git version with optional Mission pack desktop files."
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://triptohell.info/moodles/qss/"
|
url="http://triptohell.info/moodles/qss/"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('libvorbis' 'libmad' 'sdl2' 'opus' 'opusfile')
|
depends=('libvorbis' 'libmad' 'flac' 'opusfile' 'libmikmod' 'sdl2')
|
||||||
conflicts=('quakespasm' 'quakespasm-svn')
|
conflicts=('quakespasm-spiked')
|
||||||
provides=('quakespasm')
|
provides=('quakespasm-spiked')
|
||||||
install=$_pkgname.install
|
install=$_pkgname.install
|
||||||
source=("${_pkgname}::git+https://github.com/Shpoike/Quakespasm"
|
source=("${_pkgname}::git+https://github.com/Shpoike/Quakespasm"
|
||||||
$_pkgname.desktop
|
$_pkgname.desktop)
|
||||||
$_pkgname-mp1.desktop
|
|
||||||
$_pkgname-mp2.desktop
|
|
||||||
$_pkgname-impel.desktop)
|
|
||||||
sha1sums=('SKIP'
|
sha1sums=('SKIP'
|
||||||
'7a78889a7a6e24047b4777a8b4827e29cfc87381'
|
'3138e0f57c06e9431d1b030fed0983f5fd7db393')
|
||||||
'2b774f68f889308ba0b8de69580a32ed11f833ec'
|
|
||||||
'1184a40775fc46c129828d4a9a35785542c62ee3'
|
|
||||||
'2c97f722fc5c9f8d8f1a9a01f55491a448a9253e')
|
|
||||||
|
|
||||||
# Using the most recent un-annotated tag reachable from the last commit:
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$_pkgname"
|
cd "$_pkgname"
|
||||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$_pkgname/$_pkgname/Quake/"
|
cd "$srcdir/$_pkgname/quakespasm/Quake/"
|
||||||
msg "Starting make..."
|
make \
|
||||||
make DO_USERDIRS=1 USE_SDL2=1
|
DO_USERDIRS=1 \
|
||||||
|
USE_SDL2=1 \
|
||||||
|
USE_CODEC_FLAC=1 \
|
||||||
|
USE_CODEC_OPUS=1 \
|
||||||
|
USE_CODEC_MIKMOD=1 \
|
||||||
|
USE_CODEC_UMX=1
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$_pkgname/$_pkgname/Quake/"
|
cd "$srcdir/$_pkgname/quakespasm/Quake/"
|
||||||
install -Dm755 quakespasm "$pkgdir"/usr/bin/$_pkgname
|
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
|
for i in 16 24 32 48 64 72; do
|
||||||
#
|
install -Dm644 $srcdir/$_pkgname/quakespasm/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png
|
||||||
# Uncomment lines depending on the mission pack(s)
|
done
|
||||||
# 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
|
|
||||||
|
|
||||||
|
install -Dm644 $srcdir/$_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[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
|
|
|
@ -1,9 +0,0 @@
|
||||||
[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
|
|
|
@ -1,9 +0,0 @@
|
||||||
[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
|
|
|
@ -1,9 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Quake
|
Name=Quake
|
||||||
Icon=quakespasm
|
Icon=quakespasm-spiked
|
||||||
Exec=quakespasm
|
Exec=quakespasm-spiked
|
||||||
Categories=Game;Shooter;
|
Categories=Game;Shooter;
|
||||||
Comment=Quake (quakespasm engine)
|
Comment=Quake (quakespasm-spiked engine)
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
@ -5,7 +5,7 @@ post_install() {
|
||||||
:: additionally pak1.pak for the whole game.
|
:: additionally pak1.pak for the whole game.
|
||||||
:: Put them into <YOUR_HOME_DIR>/.quakespasm/id1/
|
:: Put them into <YOUR_HOME_DIR>/.quakespasm/id1/
|
||||||
|
|
||||||
:: If you have uncommented line in package(),
|
:: If you have uncommented line in package(),
|
||||||
:: Here is how to install MPs and extensions.
|
:: Here is how to install MPs and extensions.
|
||||||
|
|
||||||
:: There is desktop file for Mission Pack 1 (hipnotic)
|
:: There is desktop file for Mission Pack 1 (hipnotic)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user