New package: quake4-1.4.2 (Quake 4 for Linux binaries, nonfree).

This commit is contained in:
Juan RP 2014-03-31 10:42:50 +02:00
parent 3232a64f10
commit a1dec04844
6 changed files with 128 additions and 0 deletions

43
srcpkgs/quake4/INSTALL Normal file
View file

@ -0,0 +1,43 @@
case "${ACTION}" in
post)
cat<<EOF
=========================================================================
In order to use the software, you have to agree to ID Software's license
located in /usr/share/licenses/quake4/License.txt and Punkbuster's license
located in /usr/share/licenses/quake4/PBEULA.txt.
The following files must be copied from the install CDs [1]
to '~/.quake4/q4base' (for users) or '/opt/quake4/q4base/' (system).
b201b914167f47061fa5f975af527122 pak001.pk4
dabe2c88e004198947431250e3f4ca1d pak002.pk4
8573f05af4c9568880cc464d06292079 pak003.pk4
12ff4006a7f7181ac16835d05c59905f pak004.pk4
3576213f4e00f06baf3cd5de089a538a pak005.pk4
aec7bb418b9a86256f9e5daee894dee2 pak006.pk4
0f53b4fb4df2c14fcd10012baf8b2f87 pak007.pk4
b099d75869f0ffcbcb8e5166374af345 pak008.pk4
cb2b44bf573559dc19b488d9e1e5bec3 pak009.pk4
d024073349dc917b4feab49e6abc417b pak010.pk4
98c854d94ce1da5272952b77821823df pak011.pk4
e77a2fda6656495d38773e05bbffda33 pak012.pk4
669d6d9a30b798d19434972475b98c53 zpak_english.pk4
2cabddd692e214c78c20a464da43f1ef zpak_french.pk4
4ee7eb637cde6bcfe3a9ffac5e4579dd zpak_italian.pk4
36eee38e6c2dce12986f7192a5a996e5 zpak_spanish.pk4
Start the game with the command: quake4
Start the dedicated server with the command: quake4-dedicated
For troubleshooting and help, see:
http://zerowing.idsoftware.com/linux/
If you are using pulseaudio don't forget to also install the
'alsa-plugins-pulseaudio' package for x86 (32bit) or
'alsa-plugins-pulseaudio-32bit' for x86_64 (64bit).
=========================================================================
EOF
;;
esac

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -0,0 +1,6 @@
#!/bin/sh
cd "/opt/quake4"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
./q4ded.x86 $*
exit $?

View file

@ -0,0 +1,6 @@
#!/bin/sh
cd "/opt/quake4"
export LD_PRELOAD=/opt/quake4/libSDL-1.2.id.so.0
./quake4smp.x86 $*
exit $?

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Name=Quake 4
GenericName=Quake 4
Comment=Quake 4
Exec=/usr/bin/quake4
Icon=/usr/share/pixmaps/quake4.png
StartupNotify=true
Terminal=false
Type=Application
Categories=Qt;KDE;GNOME;Application;Game;

62
srcpkgs/quake4/template Normal file
View file

@ -0,0 +1,62 @@
# Template file for 'quake4'
pkgname=quake4
version=1.4.2
revision=1
makedepends="SDL-devel libXext-devel libudev-devel zlib-devel desktop-file-utils"
depends="SDL libXext libudev zlib desktop-file-utils"
short_desc="Quake 4 for Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary"
homepage="http://www.quake4game.com/"
distfiles="http://www.quakeunity.com/dls/717dc5a7538f3b46b7810f2306dee527/quake4-linux-${version}.x86.run"
skip_extraction="quake4-linux-${version}.x86.run"
checksum=9203b387b1a4075a1b9ad1eb7be32b49a88141a448d9330d9cbe1f40a145bd6a
# 32bit package for x86_64 built on x86 :-)
only_for_archs="i686"
nonfree="yes"
nostrip="yes"
create_wrksrc=yes
lib32mode=full
do_install() {
vmkdir opt
# Extract files
chmod +x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/quake4-linux-${version}.x86.run
${XBPS_SRCDISTDIR}/${pkgname}-${version}/quake4-linux-${version}.x86.run --noexec --target quake4
# Move pk4 files to correct location
mv quake4/us/q4base/*.pk4 quake4/q4base
# Move Executables and Libraries
install -m 755 -t quake4/ quake4/bin/Linux/x86/{lib*,q4ded*,quake4*}
# Make Everything World-Readable
chmod -R a+r quake4/
# Remove Unneeded Files
rm -rf quake4/{germany/,setup.data/,setup.sh,us/,bin/}
# Move Quake4 to Destination Directory
mv quake4 ${DESTDIR}/opt/
# Install Launcher (Client - SMP)
vinstall ${FILESDIR}/quake4-smp.launcher 755 usr/bin quake4
# Install Launcher (Server)
vinstall ${FILESDIR}/quake4-dedicated.launcher 755 usr/bin quake4-dedicated
# Install License (Quake 4)
vinstall ${DESTDIR}/opt/quake4/License.txt 644 usr/share/licenses/quake4
# Install License (PunkBuster)
vinstall ${DESTDIR}/opt/quake4/pb/PBEULA.txt 644 usr/share/licenses/quake4
# Install Desktop File
vinstall ${FILESDIR}/quake4.desktop 644 usr/share/applications
# Install Icon File
vinstall ${FILESDIR}/Quake-IV-icon.png 644 usr/share/pixmaps quake4.png
}