New package: darkplaces-20130304 (An improved Quake I engine).

This commit is contained in:
Juan RP 2014-03-29 21:24:30 +01:00
parent 61731cadfb
commit 6a26dc10e1
3 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,14 @@
case "${ACTION}" in
post)
cat <<EOF
=========================================================================
To run darkplaces you need data files. Get the Quake 1 data files from
somewhere. Copy the data files (id1/pak0.pak) to /opt/quake/.
To start a game, run darkplaces-{glx,sdl}.
=========================================================================
EOF
;;
esac

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Exec=darkplaces-sdl
Icon=darkplaces
Type=Application
Categories=Game;ActionGame;
Name=Darkplaces
GenericName=Quake Engine
Comment=Play Quake with the Darkplaces engine
StartupNotify=true
Terminal=false

View file

@ -0,0 +1,35 @@
# Template file for 'darkplaces'
pkgname=darkplaces
version=20130304
revision=1
create_wrksrc=yes
hostmakedepends="unzip"
makedepends="alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel
SDL-devel desktop-file-utils hicolor-icon-theme"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="An advanced Quake 1 game engine"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://icculus.org/twilight/darkplaces/"
distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
checksum=e1858dcba033b1dfc6e685482745b7137ceb23dfd710671971cd5e34529a9f44
do_configure() {
# Extract the real source code.
unzip -q darkplacesenginesource${version}.zip
}
do_build() {
cd ${pkgname}
sed -i -e '1i DP_LINK_TO_LIBJPEG=1' makefile
make OPTIM_RELEASE="${CFLAGS}" DP_FS_BASEDIR=/opt/quake release
}
do_install() {
cd ${pkgname}
install -d ${DESTDIR}/usr/{bin,share/quake}
install -m755 darkplaces-{dedicated,glx,sdl} ${DESTDIR}/usr/bin
for i in 16 24 32 48 64 72; do
install -Dm644 darkplaces${i}x${i}.png ${DESTDIR}/usr/share/icons/hicolor/${i}x${i}/apps/darkplaces.png
done
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
}