Fixed Red Eclipse .desktop to show the icon properly.

parent cbe29eb8
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=redeclipse
pkgver=1.4
pkgrel=1
pkgrel=2
pkgdesc='A first-person shooter, built as a total conversion of Cube Engine 2'
arch=(i686 x86_64)
url=http://redeclipse.net
......@@ -19,6 +19,9 @@ md5sums=('3d478f5cf4838adcf5cde8d3421f2ffe')
build() {
cd "$srcdir/$pkgname-$pkgver/src"
# Fix .desktop icon (fixed upstream after Red Eclipse 1.4).
sed 's/"@APPNAME@"/@APPNAME@/' -i src/install/nix/redeclipse.desktop.am
# System Enet.
sed \
-e "s#-Ienet/include#-I/usr/share/enet/include#" \
......
--- Makefile.orig 2012-08-31 05:59:06.000000000 +0000
+++ Makefile 2012-09-01 08:54:52.276484541 +0000
@@ -9,7 +9,7 @@
PLATFORM= $(shell uname -s)
PLATFORM_SUFFIX=_native
-INCLUDES= -Ishared -Iengine -Igame -Ienet/include
+INCLUDES= -Ishared -Iengine -Igame -I/usr/share/enet/include
STRIP=
ifeq (,$(findstring -g,$(CXXFLAGS)))
@@ -42,7 +42,7 @@
CLIENT_LIBS= -mwindows $(STD_LIBS) -L$(WINBIN) -L$(WINLIB) -lSDL -lSDL_image -lSDL_mixer -lzlib1 -lopengl32 -lenet -lws2_32 -lwinmm
else
CLIENT_INCLUDES= $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
-CLIENT_LIBS= -Lenet/.libs -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
+CLIENT_LIBS= -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
endif
ifeq ($(PLATFORM),Linux)
CLIENT_LIBS+= -lrt
@@ -113,7 +113,7 @@
SERVER_LIBS= -mwindows $(STD_LIBS) -L$(WINBIN) -L$(WINLIB) -lzlib1 -lenet -lws2_32 -lwinmm
else
SERVER_INCLUDES= -DSTANDALONE $(INCLUDES)
-SERVER_LIBS= -Lenet/.libs -lenet -lz
+SERVER_LIBS= -lenet -lz
endif
SERVER_OBJS= \
shared/crypto-standalone.o \
@@ -178,13 +178,13 @@
$(STRIP) $(WINBIN)/$(APPSERVER).exe
endif
else
-client: libenet $(CLIENT_OBJS)
+client: $(CLIENT_OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(APPCLIENT) $(CLIENT_OBJS) $(CLIENT_LIBS)
ifneq (,$(STRIP))
$(STRIP) $(APPCLIENT)
endif
-server: libenet $(SERVER_OBJS)
+server: $(SERVER_OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(APPSERVER) $(SERVER_OBJS) $(SERVER_LIBS)
ifneq (,$(STRIP))
$(STRIP) $(APPSERVER)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment