mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
games/xonotic: Updated for version 0.6.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
c71254d1b4
commit
bb518ea266
3 changed files with 44 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for xonotic
|
||||
|
||||
# Copyright 2012 James Geboski <jgeboski@gmail.com>
|
||||
# Copyright 2012-2013 James Geboski <jgeboski@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=xonotic
|
||||
VERSION=${VERSION:-0.6.0}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -71,32 +71,47 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
cp $CWD/d0_rijndael.c source/d0_blind_id
|
||||
|
||||
mkdir -p \
|
||||
$PKG/usr/bin \
|
||||
$PKG/usr/share/xonotic/data \
|
||||
$PKG/usr/share/xonotic \
|
||||
$PKG/usr/share/{applications,pixmaps}
|
||||
|
||||
cd source/fteqcc
|
||||
make CFLAGS="-Wall $SLKCFLAGS"
|
||||
FTEQCC=$(pwd)/fteqcc.bin
|
||||
cd source/d0_blind_id
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--build=$ARCH-slackware-linux \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd -
|
||||
|
||||
cd source/qcsrc
|
||||
make FTEQCCFLAGS_WATERMARK="" FTEQCC="$FTEQCC"
|
||||
cd -
|
||||
make -C source/fteqcc \
|
||||
CFLAGS="$SLKCFLAGS"
|
||||
|
||||
cd source/darkplaces
|
||||
make release \
|
||||
CFLAGS_EXTRA="$SLKCFLAGS" \
|
||||
DP_FS_BASEDIR="/usr/share/xonotic"
|
||||
install -m 755 darkplaces-sdl $PKG/usr/bin/xonotic-glx
|
||||
install -m 755 darkplaces-glx $PKG/usr/bin/xonotic-sdl
|
||||
cd -
|
||||
make -C source/qcsrc \
|
||||
FTEQCC="$(pwd)/source/fteqcc/fteqcc.bin" \
|
||||
FTEQCCFLAGS_WATERMARK=""
|
||||
|
||||
cp data/* $PKG/usr/share/xonotic/data
|
||||
# Rather than using libdl, link libd0_blind_id and libd0_rijndael
|
||||
make -C source/darkplaces release \
|
||||
CFLAGS_EXTRA="$SLKCFLAGS" \
|
||||
DP_FS_BASEDIR="/usr/share/xonotic" \
|
||||
CFLAGS_CRYPTO="-I$PKG/usr/include -DCRYPTO_STATIC" \
|
||||
LIB_CRYPTO="-L$PKG/usr/lib${LIBDIRSUFFIX} -ld0_blind_id" \
|
||||
CFLAGS_CRYPTO_RIJNDAEL="-I$PKG/usr/include -DCRYPTO_RIJNDAEL_STATIC" \
|
||||
LIB_CRYPTO_RIJNDAEL="-L$PKG/usr/lib${LIBDIRSUFFIX} -ld0_rijndael"
|
||||
|
||||
install -m 644 $CWD/xonotic.desktop $PKG/usr/share/applications
|
||||
install -m 644 misc/logos/xonotic_icon.svg $PKG/usr/share/pixmaps/xonotic.svg
|
||||
install -m 755 source/darkplaces/darkplaces-sdl $PKG/usr/bin/xonotic-glx
|
||||
install -m 755 source/darkplaces/darkplaces-glx $PKG/usr/bin/xonotic-sdl
|
||||
install -m 644 $CWD/xonotic.desktop $PKG/usr/share/applications
|
||||
install -m 644 misc/logos/xonotic_icon.svg $PKG/usr/share/pixmaps/xonotic.svg
|
||||
|
||||
cp -a data key_0.d0pk $PKG/usr/share/xonotic
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
PRGNAM="xonotic"
|
||||
VERSION="0.6.0"
|
||||
HOMEPAGE="http://www.xonotic.org/"
|
||||
DOWNLOAD="http://dl.xonotic.org/xonotic-0.6.0.zip"
|
||||
MD5SUM="2dac2c1ad4388255d3ad4d038dea3f77"
|
||||
DOWNLOAD=" \
|
||||
http://dl.xonotic.org/xonotic-0.6.0.zip \
|
||||
https://gist.github.com/jgeboski/5315092/raw/d0_rijndael.c"
|
||||
MD5SUM=" \
|
||||
2dac2c1ad4388255d3ad4d038dea3f77 \
|
||||
bb59b1fc4b59caedad87da19c2193144"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue