forked from hasufell/hasufell-repository
Various minor improvements
This commit is contained in:
@@ -7,7 +7,7 @@ MY_PN=alienarena-7.66
|
||||
SUMMARY="Fast-paced multiplayer deathmatch game"
|
||||
HOMEPAGE="http://red.planetarena.org/"
|
||||
DOWNLOADS="http://icculus.org/alienarena/Files/${MY_PN}-linux${PV}.tar.gz
|
||||
http://red.planetarena.org/files/${MY_PN}-linux${PV}.tar.gz"
|
||||
http://red.planetarena.org/files/${MY_PN}-linux${PV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-2 free-noncomm"
|
||||
SLOT="0"
|
||||
@@ -56,7 +56,7 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
default
|
||||
|
||||
insinto /usr/share/applications/
|
||||
hereins ${PN}.desktop << EOF
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
Author: unknown
|
||||
Upstream: no
|
||||
Reason: fix compiler warnings
|
||||
|
||||
--- source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100
|
||||
+++ source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100
|
||||
@@ -2123,7 +2123,7 @@
|
||||
|
||||
@@ -24,7 +24,7 @@ MY_SC55=3.0
|
||||
MY_OPL=2.0
|
||||
MY_XXX=1.33
|
||||
|
||||
DESCRIPTION="Port of Duke Nukem 3D for SDL"
|
||||
SUMMARY="Port of Duke Nukem 3D for SDL"
|
||||
HOMEPAGE="http://www.eduke32.com/ http://hrp.duke4.net/"
|
||||
DOWNLOADS="http://dev.gentoo.org/~hasufell/distfiles/eduke32-icons.tar
|
||||
hires-textures? ( mirror://gentoo/duke3d_hrp_${MY_HRP}.zip )
|
||||
|
||||
@@ -15,10 +15,10 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
media-libs/SDL:0[X]
|
||||
media-libs/SDL_image:1
|
||||
media-libs/SDL_mixer:0[ogg]
|
||||
x11-libs/libX11
|
||||
media-libs/SDL:0[X]
|
||||
media-libs/SDL_image:1
|
||||
media-libs/SDL_mixer:0[ogg]
|
||||
x11-libs/libX11
|
||||
sys-libs/zlib
|
||||
x11-dri/glu
|
||||
x11-dri/mesa
|
||||
@@ -30,12 +30,12 @@ DEPENDENCIES="
|
||||
WORK=${WORKBASE}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
edo rm -r sauerbraten_unix bin_unix src/{include,lib,vcpp}
|
||||
edo rm -r sauerbraten_unix bin_unix src/{include,lib,vcpp}
|
||||
|
||||
default
|
||||
|
||||
# Fix links so they point to the correct directory
|
||||
edo sed -i -e 's:docs/::' README.html
|
||||
# Fix links so they point to the correct directory
|
||||
edo sed -i -e 's:docs/::' README.html
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
@@ -44,8 +44,8 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
local LIBEXECDIR="/usr/$(exhost --target)/libexec/${PN}"
|
||||
local DATADIR="/usr/share/${PN}"
|
||||
local STATEDIR="/var/lib/${PN}"
|
||||
local DATADIR="/usr/share/${PN}"
|
||||
local STATEDIR="/var/lib/${PN}"
|
||||
|
||||
# Install the game data
|
||||
insinto "${DATADIR}"
|
||||
@@ -77,14 +77,14 @@ Icon=${PN}
|
||||
Categories=Game;ActionGame;
|
||||
EOF
|
||||
|
||||
# Install the server config files
|
||||
insinto "${STATEDIR}"
|
||||
doins "server-init.cfg"
|
||||
# Install the server config files
|
||||
insinto "${STATEDIR}"
|
||||
doins "server-init.cfg"
|
||||
|
||||
# Install the server executables
|
||||
exeinto "${LIBEXECDIR}"
|
||||
doexe src/sauer_master
|
||||
doexe src/sauer_server
|
||||
# Install the server executables
|
||||
exeinto "${LIBEXECDIR}"
|
||||
doexe src/sauer_master
|
||||
doexe src/sauer_server
|
||||
|
||||
herebin ${PN}-server <<EOF
|
||||
#!/bin/sh
|
||||
@@ -96,30 +96,30 @@ exec "${LIBEXECDIR}/sauer_master" ${STATEDIR} "\$@"
|
||||
EOF
|
||||
|
||||
# Install the server init script
|
||||
edo cp "${FILES}"/${PN}.init "${TEMP}"
|
||||
edo sed -i \
|
||||
-e "s:%SYSCONFDIR%:${STATEDIR}:g" \
|
||||
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
|
||||
"${TEMP}"/${PN}.init
|
||||
newinitd "${TEMP}"/${PN}.init ${PN}
|
||||
edo cp "${FILES}"/${PN}.conf "${TEMP}"
|
||||
edo sed -i \
|
||||
-e "s:%SYSCONFDIR%:${STATEDIR}:g" \
|
||||
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
|
||||
"${TEMP}"/${PN}.conf
|
||||
newconfd "${TEMP}"/${PN}.conf ${PN}
|
||||
edo cp "${FILES}"/${PN}.init "${TEMP}"
|
||||
edo sed -i \
|
||||
-e "s:%SYSCONFDIR%:${STATEDIR}:g" \
|
||||
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
|
||||
"${TEMP}"/${PN}.init
|
||||
newinitd "${TEMP}"/${PN}.init ${PN}
|
||||
edo cp "${FILES}"/${PN}.conf "${TEMP}"
|
||||
edo sed -i \
|
||||
-e "s:%SYSCONFDIR%:${STATEDIR}:g" \
|
||||
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
|
||||
"${TEMP}"/${PN}.conf
|
||||
newconfd "${TEMP}"/${PN}.conf ${PN}
|
||||
|
||||
dodoc src/*.txt docs/dev/*.txt
|
||||
dodoc src/*.txt docs/dev/*.txt
|
||||
|
||||
insinto /usr/share/doc/${PNVR}/html
|
||||
doins -r README.html docs/*
|
||||
|
||||
edo chown sauerbraten:sauerbraten "${IMAGE%/}/${STATEDIR}"
|
||||
edo chown sauerbraten:sauerbraten "${IMAGE%/}/${STATEDIR}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you plan to use map editor feature copy all map data from ${DATADIR}"
|
||||
elog "to corresponding folder in your HOME/.${PN}"
|
||||
elog "If you plan to use map editor feature copy all map data from ${DATADIR}"
|
||||
elog "to corresponding folder in your HOME/.${PN}"
|
||||
|
||||
gtk-icon-cache_pkg_postinst
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Author: hasufell <hasufell@gentoo.org>
|
||||
Date: Wed Jul 10 01:25:27 2013 +0200
|
||||
Upstream: no, they don't care
|
||||
|
||||
respect CFLAGS/LDFLAGS
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ DATA_PV=${PV//./}
|
||||
ENGINE_PV=${PV//./}
|
||||
ENGINE_P=${PN}_${ENGINE_PV}_sdk
|
||||
|
||||
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
|
||||
SUMMARY="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
|
||||
HOMEPAGE="http://www.warsow.net/"
|
||||
DOWNLOADS="http://mirror.null.one/${ENGINE_P}.tar.gz
|
||||
http://mirror.null.one/warsow_${DATA_PV}_unified.tar.gz
|
||||
@@ -27,17 +27,17 @@ MYOPTIONS="
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
media-libs/SDL:2[X]
|
||||
media-libs/freetype
|
||||
media-libs/libogg
|
||||
media-libs/libpng:=
|
||||
media-libs/libtheora
|
||||
media-libs/libvorbis
|
||||
media-libs/openal
|
||||
media-libs/SDL:2[X]
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
x11-dri/mesa
|
||||
providers:ijg-jpeg? ( media-libs/jpeg )
|
||||
providers:ijg-jpeg? ( media-libs/jpeg:= )
|
||||
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
||||
"
|
||||
|
||||
|
||||
@@ -51,33 +51,33 @@ DEPENDENCIES="
|
||||
WORK=${WORKBASE}/${MY_PN}
|
||||
|
||||
src_prepare() {
|
||||
edo sed -i \
|
||||
-e "/^EXE_/s:darkplaces:${PN}:" \
|
||||
-e "s:-O3:${CFLAGS}:" \
|
||||
-e "/-lm/s:$: ${LDFLAGS}:" \
|
||||
-e '/^STRIP/s/strip/true/' \
|
||||
source/darkplaces/makefile.inc
|
||||
edo sed -i \
|
||||
-e "/^EXE_/s:darkplaces:${PN}:" \
|
||||
-e "s:-O3:${CFLAGS}:" \
|
||||
-e "/-lm/s:$: ${LDFLAGS}:" \
|
||||
-e '/^STRIP/s/strip/true/' \
|
||||
source/darkplaces/makefile.inc
|
||||
|
||||
if ! option alsa; then
|
||||
edo sed -i \
|
||||
-e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
|
||||
source/darkplaces/makefile
|
||||
fi
|
||||
if ! option alsa; then
|
||||
edo sed -i \
|
||||
-e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
|
||||
source/darkplaces/makefile
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local i
|
||||
local i
|
||||
|
||||
export CC=${CC} CXX=${CXX} LD=${LD} AR=${AR} RANLIB=${RANLIB}
|
||||
export CC=${CC} CXX=${CXX} LD=${LD} AR=${AR} RANLIB=${RANLIB}
|
||||
|
||||
# fixes parallel build issues
|
||||
for i in sv-release cl-release sdl-release ; do
|
||||
emake \
|
||||
-C source/darkplaces \
|
||||
DP_LINK_TO_LIBJPEG=1 \
|
||||
DP_FS_BASEDIR="/usr/share/${PN}" \
|
||||
${i}
|
||||
done
|
||||
# fixes parallel build issues
|
||||
for i in sv-release cl-release sdl-release ; do
|
||||
emake \
|
||||
-C source/darkplaces \
|
||||
DP_LINK_TO_LIBJPEG=1 \
|
||||
DP_FS_BASEDIR="/usr/share/${PN}" \
|
||||
${i}
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
@@ -109,11 +109,11 @@ EOF
|
||||
|
||||
dobin source/darkplaces/${PN}-glx
|
||||
dobin source/darkplaces/${PN}-sdl
|
||||
dobin source/darkplaces/${PN}-dedicated
|
||||
dobin source/darkplaces/${PN}-dedicated
|
||||
|
||||
dodoc Docs/*.txt
|
||||
dodoc Docs/*.txt
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r key_0.d0pk server data
|
||||
insinto /usr/share/${PN}
|
||||
doins -r key_0.d0pk server data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user