From 7174ad39d848e63e4904b57bf1377f2a136f5361 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Apr 2012 23:07:49 +0200 Subject: [PATCH] New package: xonotic-0.6.0. --- srcpkgs/xonotic-data/template | 21 ++++++++ srcpkgs/xonotic/files/xonotic-glx.desktop | 11 +++++ srcpkgs/xonotic/files/xonotic-sdl.desktop | 11 +++++ srcpkgs/xonotic/template | 59 +++++++++++++++++++++++ srcpkgs/xonotic/xonotic.rshlibs | 13 +++++ 5 files changed, 115 insertions(+) create mode 100644 srcpkgs/xonotic-data/template create mode 100644 srcpkgs/xonotic/files/xonotic-glx.desktop create mode 100644 srcpkgs/xonotic/files/xonotic-sdl.desktop create mode 100644 srcpkgs/xonotic/template create mode 100644 srcpkgs/xonotic/xonotic.rshlibs diff --git a/srcpkgs/xonotic-data/template b/srcpkgs/xonotic-data/template new file mode 100644 index 0000000000..1287855131 --- /dev/null +++ b/srcpkgs/xonotic-data/template @@ -0,0 +1,21 @@ +# Template file for 'xonotic-data' +pkgname=xonotic-data +version=0.6.0 +noarch=yes +wrksrc="Xonotic" +homepage="http://xonotic.org" +license="GPL-2, GPL-3" +distfiles="http://dl.xonotic.org/xonotic-${version}.zip" +short_desc="A free, fast-paced crossplatform first-person shooter (data files)" +maintainer="Juan RP " +checksum=e8a7dbfdea1ba6250ddf363f01899411f22e518526fae4f0b4f90d622fab3819 +long_desc=" + Xonotic is $short_desc. + + This package contains the data files." + +do_install() { + vmkdir usr/share/xonotic + cp -a data ${DESTDIR}/usr/share/xonotic + vinstall key_0.d0pk 644 usr/share/xonotic +} diff --git a/srcpkgs/xonotic/files/xonotic-glx.desktop b/srcpkgs/xonotic/files/xonotic-glx.desktop new file mode 100644 index 0000000000..9f9e78cc1c --- /dev/null +++ b/srcpkgs/xonotic/files/xonotic-glx.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (GLX) +Comment=a free open-source first person shooter +Icon=/usr/share/pixmaps/xonotic.png +Exec=/usr/bin/xonotic-glx +Terminal=false +StartupNotify=false +Categories=Game; diff --git a/srcpkgs/xonotic/files/xonotic-sdl.desktop b/srcpkgs/xonotic/files/xonotic-sdl.desktop new file mode 100644 index 0000000000..32b37f2c55 --- /dev/null +++ b/srcpkgs/xonotic/files/xonotic-sdl.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (SDL) +Comment=a free open-source first person shooter +Icon=/usr/share/pixmaps/xonotic.png +Exec=/usr/bin/xonotic-sdl +Terminal=false +StartupNotify=false +Categories=Game; diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template new file mode 100644 index 0000000000..1ce3d231c4 --- /dev/null +++ b/srcpkgs/xonotic/template @@ -0,0 +1,59 @@ +# Template file for 'xonotic' +pkgname=xonotic +version=0.6.0 +wrksrc="Xonotic" +homepage="http://xonotic.org" +license="GPL-2, GPL-3" +distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip" +short_desc="A free, fast-paced crossplatform first-person shooter" +maintainer="Juan RP " +checksum=5cdf60597631d126cb8f2b0dae086075152b553da11353463ea828cb0cce3c98 +long_desc=" + This is Xonotirc, $short_desc." + +Add_dependency build unzip +Add_dependency build gmp-devel +Add_dependency build MesaLib-devel +Add_dependency build SDL-devel +Add_dependency build libcurl-devel +Add_dependency build alsa-lib-devel +Add_dependency build libmodplug-devel +Add_dependency build libvorbis-devel +Add_dependency build libXpm-devel +Add_dependency build jpeg-devel + +Add_dependency run desktop-file-utils +Add_dependency run xonotic-data ">=${version}" + +do_build() { + make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \ + DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release + make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \ + DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release + make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \ + DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release + + cd source/d0_blind_id + ./configure --prefix=/usr --disable-rijndael + make ${makejobs} +} + +do_install() { + # binaries + vinstall source/darkplaces/darkplaces-dedicated 755 usr/bin xonotic-dedicated + vinstall source/darkplaces/darkplaces-glx 755 usr/bin xonotic-glx + vinstall source/darkplaces/darkplaces-sdl 755 usr/bin xonotic-sdl + + # convenience files + vmkdir usr/share/applications + install -Dm644 $FILESDIR/*.desktop -t $DESTDIR/usr/share/applications + install -Dm644 misc/logos/icons_png/xonotic_512.png \ + $DESTDIR/usr/share/pixmaps/xonotic.png + + # crypto stuff + cd source/d0_blind_id + make DESTDIR=$DESTDIR install + + # Remove devel stuff + rm -rf $DESTDIR/usr/include $DESTDIR/usr/lib/pkgconfig $DESTDIR/usr/lib/*.a +} diff --git a/srcpkgs/xonotic/xonotic.rshlibs b/srcpkgs/xonotic/xonotic.rshlibs new file mode 100644 index 0000000000..5be5b96a87 --- /dev/null +++ b/srcpkgs/xonotic/xonotic.rshlibs @@ -0,0 +1,13 @@ +libm.so.6 +libjpeg.so.8 +librt.so.1 +libdl.so.2 +libc.so.6 +libX11.so.6 +libXpm.so.4 +libXext.so.6 +libXxf86vm.so.1 +libasound.so.2 +libpthread.so.0 +libSDL-1.2.so.0 +libgmp.so.10