New package: doom3-1.3.1.1304_1 (DOOM 3 for Linux binaries, nonfree).

This commit is contained in:
Juan RP 2014-03-31 10:41:02 +02:00
parent e673b4ae07
commit 3232a64f10
5 changed files with 119 additions and 0 deletions

38
srcpkgs/doom3/INSTALL Normal file
View File

@ -0,0 +1,38 @@
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/doom3/License.txt and Punkbuster's license
located in /usr/share/licenses/doom3/PBEULA.txt.
The following files must be copied from the install CDs [1]
to '/opt/doom3/base/' (system).
71b8d37b2444d3d86a36fd61783844fe base/pak000.pk4
4bc4f3ba04ec2b4f4837be40e840a3c1 base/pak001.pk4
fa84069e9642ad9aa4b49624150cc345 base/pak002.pk4
f22d8464997924e4913e467e7d62d5fe base/pak003.pk4
38561a3c73f93f2e6fd31abf1d4e9102 base/pak004.pk4
If you are also installing the Resurrection of Evil Expansion Pack,
you need to copy the following file to your d3xp/ directory on
'/opt/doom3/d3xp'
a883fef0fd10aadeb73d34c462ff865d d3xp/pak000.pk4
Start the game with the command: doom3
Start the dedicated server with the command: doom3-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

View File

@ -0,0 +1,6 @@
#!/bin/sh
cd "/opt/doom3"
exec ./doomded.x86 "$@"
exit $?

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=DOOM III
Comment=DOOM III
Exec=doom3
Icon=doom3
StartupNotify=true
Terminal=false
Type=Application
Categories=Game;Shooter;

View File

@ -0,0 +1,5 @@
#!/bin/sh
cd "/opt/doom3"
./doom.x86 "$@"
exit $?

60
srcpkgs/doom3/template Normal file
View File

@ -0,0 +1,60 @@
# Template file for 'doom3'
pkgname=doom3
version=1.3.1.1304
revision=1
makedepends="libudev-devel alsa-lib-devel libXext-devel desktop-file-utils"
depends="libudev alsa-lib libXext desktop-file-utils"
short_desc="Doom 3 for Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary"
homepage="http://www.doom3.com/"
distfiles="http://www.1337-server.net/doom3/doom3-linux-${version}.x86.run"
skip_extraction="doom3-linux-${version}.x86.run"
checksum=2f90dff20f2d3c0c47f17b3d6d45c4f0e7d27b986bf6084f21b85180cd1e03b4
# 32bit package for x86_64 built on x86 :-)
only_for_archs="i686"
nonfree="yes"
nostrip="yes"
create_wrksrc=yes
lib32mode=full
do_install() {
# Extract files
/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/doom3-linux-${version}.x86.run --noexec --target doom3
cd doom3
# Create Destination Directories
install -d ${DESTDIR}/opt/doom3/{base,d3xp,pb/htm}
# Install Game Files
install -m 644 base/* ${DESTDIR}/opt/doom3/base
install -m 644 d3xp/* ${DESTDIR}/opt/doom3/d3xp
install -m 644 pb/htm/* ${DESTDIR}/opt/doom3/pb/htm
install -m 644 {CHANGES,README,version.info} ${DESTDIR}/opt/doom3
# Install Punkbuster Libraries
install -m 755 pb/{pbag.so,pbags.so,pbcl.so,pbcls.so,pbsv.so} ${DESTDIR}/opt/doom3/pb
# Install Game Binaries
install -m 755 bin/Linux/x86/{doom.x86,doomded.x86} ${DESTDIR}/opt/doom3
# Install Game Launcher (Client)
vinstall ${FILESDIR}/doom3.launcher 755 usr/bin doom3
# Install Game Launcher (Server)
vinstall ${FILESDIR}/doom3-dedicated.launcher 755 usr/bin doom3-dedicated
# Install License (DOOM 3)
vinstall License.txt 644 usr/share/licenses/${pkgname}
# Install License (Punkbuster)
vinstall pb/PB_EULA.txt 644 usr/share/licenses/${pkgname}
# Install Icon
vinstall doom3.png 644 usr/share/pixmaps
# Install Desktop File
vinstall ${FILESDIR}/doom3.desktop 644 usr/share/applications
}