You are not logged in.

#1 2005-06-23 22:25:47

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

[new] Nexuiz

Hi!

Put together an (rather ugly) PKGBUILD for Nexuiz
It is not nice, but the game is binary distributed and the ugly thing is the "hack around" for making a symlink (look at the echo codes) Nexuiz won't start correctly unless you are in the correect directory..but hey, it workes..:D
not sure of the depends either...
btw., didn't make links to the other files (such as the server part of nexuiz..if this pkgbuild works for everyone, then I will add that too)

try it out ( i am expecting that Nexuiz will be a part of Arch some day?)

EDIT: Updated the PKGBUILD to include all of the binaries...

#Contributor: CyberTron, packages@linuxportalen.com
pkgname=nexuiz
pkgver=1.0
pkgrel=1
pkgdesc="Nexuiz is a first person shooter"
url="http://www.nexuiz.com"
license=""
depends=('x-server' 'sdl')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/nexuiz/$pkgname.zip)
md5sums=('43fbe6322931460b69ff257df1eb0bee')

build() {
  cd $startdir/src/Nexuiz
  mkdir -p $startdir/pkg/usr/games
  mkdir -p $startdir/pkg/usr/bin
  mv $startdir/src/Nexuiz $startdir/pkg/usr/games
  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86-glx
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-glx
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-glx
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86-glx
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86-glx

  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86-sdl
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-sdl
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-sdl
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86-sdl
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86-sdl

  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86-dedicated
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-dedicated
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86-dedicated
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86-dedicated
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86-dedicated

  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86_64-dedicated
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-dedicated
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-dedicated
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86_64-dedicated
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86_64-dedicated

  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86_64-glx
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-glx
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-glx
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86_64-glx
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86_64-glx

  echo "#!/bin/bash" > $startdir/pkg/usr/bin/nexuiz-linux-x86_64-sdl
  echo "cd /usr/games/Nexuiz" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-sdl
  echo "/usr/games/Nexuiz/nexuiz-linux-x86-glx" >> $startdir/pkg/usr/bin/nexuiz-linux-x86_64-sdl
  chmod 755 $startdir/pkg/usr/games/Nexuiz/nexuiz-linux-x86_64-sdl
  chmod 755 $startdir/pkg/usr/bin/nexuiz-linux-x86_64-sdl
}

http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#2 2005-06-24 06:01:36

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] Nexuiz

if you take a look in the binary distro, theres source files for it too.

Offline

#3 2005-06-24 06:08:33

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: [new] Nexuiz

yes I saw that, but I don't think it is worth the while compiling it (and there is no "install" target (as far as I know..) the only thing you get is a file called "darkplaces-sdl-game" to start that you must type "darkplaces-sdl-game nexuis" which  I find disturbing...

i might be wrong though, (this is what I read at their forum)


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#4 2005-06-24 06:34:30

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] Nexuiz

darkplaces is the name of the engine they based it on, and it's a mod that runs upon that engine. not all that disturbing to me...

more disturbing is how such a horrid game needs such high specs.

Offline

#5 2005-06-24 06:39:46

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: [new] Nexuiz

more disturbing is how such a horrid game needs such high specs.

true! very strange...because it is not very pretty, but it is pretty to be an opensource game..


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#6 2005-06-24 12:52:25

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: [new] Nexuiz

To anyone having a geforce fx and experiencing slowdowns in Nexuiz...download the unofficial patch which fixes the lightning effects for these cards. You'll be suprised how fast the game runs. That said, it's not the graphics that is bothering me in this os game, it's the horrible netcode that causes jittering even for players with a low ping. Aside from that, the game is fun, which is a rarity in these times. 8)

Arghh, I didn't mention the most important thing. Here's the link:

http://www.nexuiz.com/forums/index.php?showtopic=372

have phun ;>

Offline

#7 2005-06-24 13:29:14

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [new] Nexuiz

cybertron:
you can do 

mkdir -p $startdir/pkg/usr/{games,bin}

instead of doing a mkdir for each and use -e on the echo command to do new lines like so:

echo -e "#!/bin/bashn/usr/games/Nexuiz/nexuiz-linux-x86-glx" 
>$startdir/pkg/usr/bin/nexuiz-linux-x86-glx"

make sure there's no space after the escape character () in your PKGBUILD if you use it, I couldn't get it out of this post...

Offline

#8 2005-06-24 14:16:22

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [new] Nexuiz

i find using the `echo -e "blahnblah" > file' method to be very hard to read
it makes it possible for people to add an `rm -rf /' in an echo command quite easily.. not that anyone here would try it.. but its possible

i went and replaced all my echo -e's with numerous echos a while ago since its _far_ easier to read!


if youre after legibility in this pkgbuild with alot of echos.. id put a _very_ clear space between the actual make commands and the echo commands..
id also add a comment..

ie

{
  mkdir blah/{blah,blah2}
  make || return 1



  # Create our scripts in /usr/bin

  echo "blah"
  echo "blah"
}

Offline

#9 2005-06-24 15:06:12

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [new] Nexuiz

I didn't have any backticks in my example so its not any easier to include a destructive command as you pointed out then what he already had.
As far as legibility, I agree with you except in his situation it may be worth it to consolidate it a bit when you consider all the repetitious echo statements involved, but just my opinion smile

Offline

#10 2005-06-24 20:43:10

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: [new] Nexuiz

ok, I will look into it...but not tonight...:D *have some other things to do this midsummers eve*


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

Board footer

Powered by FluxBB