vkquake: Initial import

This commit is contained in:
Predrag Ivanović 2018-08-01 21:36:06 +02:00
parent 0848e34b1d
commit 6f19c00773
6 changed files with 108 additions and 0 deletions

11
vkquake/.footprint Normal file
View File

@ -0,0 +1,11 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/vkquake
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/vkquake.desktop
drwxr-xr-x root/root usr/share/games/
drwxr-xr-x root/root usr/share/games/vkquake/
-rw-r--r-- root/root usr/share/games/vkquake/vkquake.pak
drwxr-xr-x root/root usr/share/pixmaps/
-rw-r--r-- root/root usr/share/pixmaps/vkquake.png

7
vkquake/.signature Normal file
View File

@ -0,0 +1,7 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF36EB0nIyNb0ihcNlWB0zP/2wvwE3ZvygUTOZvY5J9O5sdZz7VCineyc1KOoECUpHvpKtleJUT7Jz6/JhwQV7Rgk=
SHA256 (Pkgfile) = 270c49981189e7218c17ea210b6fe4f5f12b17bd0912d73ca17e28b4ce5d2b80
SHA256 (.footprint) = 66462ad5c2b551d455e2e36ea425846f55a363e089452b4421200e0a1579d841
SHA256 (1.00.0.tar.gz) = b0c5420d6f5c71ed032232729fc73537588267a187bea5f29681dc2d51d8712f
SHA256 (vkquake.desktop) = 022f8eac6de5dd75dc8c6be403fdfda3eaca44e13941c49cd48eeacb1be57385
SHA256 (vkquake.png) = 571ab4f163b31f1f56de2b5b9103cf1b48a4baf4f0ef9514bb4b2da6ba899755

27
vkquake/Pkgfile Normal file
View File

@ -0,0 +1,27 @@
# Description: Vulkan Quake port based on QuakeSpasm
# URL: https://github.com/Novum/vkQuake
# Maintainer: Pedja, predivan at mts dot rs
# Depends on: libmad libsdl2 libvorbis vulkan-loader xorg-libx11
name=vkquake
version=1.00.0
release=1
source=(https://github.com/Novum/vkQuake/archive/$version.tar.gz
vkquake.desktop
vkquake.png)
build() {
cd vkQuake-$version
make -C Quake clean
make -C Quake \
DO_USERDIRS=1
make -C Misc/vq_pak
install -Dm755 Quake/vkquake $PKG/usr/bin/vkquake
install -Dm644 Misc/vq_pak/vkquake.pak $PKG/usr/share/games/vkquake/vkquake.pak
install -Dm644 $SRC/$name.desktop $PKG/usr/share/applications/vkquake.desktop
install -Dm644 $SRC/$name.png $PKG/usr/share/pixmaps/vkquake.png
}

53
vkquake/README Normal file
View File

@ -0,0 +1,53 @@
(Based on https://github.com/Novum/vkQuake/blob/master/readme.md)
post-install
Quake has 4 episodes that are split into 2 files:
pak0.pak: contains episode 1
pak1.pak: contains episodes 2-4
These files aren't free to distribute, but pak0.pak is sufficient to run the game
and it's freely available via the shareware version of Quake.
Use 7-Zip or a similar file archiver to extract quake106.zip/resource.1/ID1/PAK0.PAK.
Alternatively, if you own the game, you can obtain both .pak files from its install media.
Create $HOME/.vkquake/id1, and copy pak0.pak (and pak1.pak, if you have it) there, e.g.:
.vkquake\id1\pak0.pak
.vkquake\id1\pak1.pak
Then vkQuake is ready to play.
Optional - Music / Soundtrack
The original quake had a great soundtrack by Nine Inch Nails. Unfortunately, the Steam version
does not come with the soundtrack files. The GOG-provided files need to be converted before they are ready for use.
In general, you'll just need to move a "music" folder to the correct location within
your vkQuake installation (.e.g .vquake/id1/music).
QuakeSpasm, the engine vkQuake is derived from, supports OGG, MP3, FLAC, and WAV audio formats.
The Linux version of QuakeSpasm/VkQuake requires external libraries: libogg or libvorbis for OGG support, libmad or libmpg123 for MP3, and libflac for FLAC.
If you already have a setup that works for the engine you're currently using, then you don't necessarily have to change it.
Generally, the below setup works for multiple engines, including Quakespasm/vkQuake:
- The music files are loose files, NOT inside a pak or pk3 archive.
- The files are placed inside a "music" subfolder of the "id1" folder.
For missionpack or mod soundtracks, the files are placed in a "music" subfolder of the appropriate game folder.
So the original Quake soundtrack files go inside "id1\music",
Mission Pack 1 soundtrack files go inside "hipnotic\music",
and Mission Pack 2 soundtrack files go inside "rogue\music".
- The files are named in the pattern "tracknn", where "nn" is the CD track number that the file was ripped from.
Since the soundtrack starts at the second CD track, MP3 soundtrack files are named "track02.mp3", "track03.mp3", etc.
OGG soundtrack files are named "track02.ogg", "track03.ogg", etc.
FLAC soundtrack files are named "track02.flac", "track03.flac", etc.
WAV soundtrack files are named "track02.wav", "track03.wav", etc.
See more: Quake Soundtrack Solutions (Steam Community)
(http://steamcommunity.com/sharedfiles/filedetails/?id=119489135)

10
vkquake/vkquake.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=vkquake
Comment=Port of Quake I to the Vulkan API
Exec=/usr/bin/vkquake
Icon=/usr/share/pixmaps/vkquake.png
Terminal=false
Type=Application
Categories=Game;
MimeType=x-scheme-handler/steam;
Keywords=quake,game,First-Person-Shooter;

BIN
vkquake/vkquake.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB