New package: xonotic-0.6.0.
This commit is contained in:
parent
7a755bd84f
commit
7174ad39d8
5 changed files with 115 additions and 0 deletions
21
srcpkgs/xonotic-data/template
Normal file
21
srcpkgs/xonotic-data/template
Normal file
|
@ -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 <xtraeme@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
11
srcpkgs/xonotic/files/xonotic-glx.desktop
Normal file
11
srcpkgs/xonotic/files/xonotic-glx.desktop
Normal file
|
@ -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;
|
11
srcpkgs/xonotic/files/xonotic-sdl.desktop
Normal file
11
srcpkgs/xonotic/files/xonotic-sdl.desktop
Normal file
|
@ -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;
|
59
srcpkgs/xonotic/template
Normal file
59
srcpkgs/xonotic/template
Normal file
|
@ -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 <xtraeme@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
13
srcpkgs/xonotic/xonotic.rshlibs
Normal file
13
srcpkgs/xonotic/xonotic.rshlibs
Normal file
|
@ -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
|
Loading…
Reference in a new issue