NAEV - 2d action/rpg space game

If there's software you need and you can't find, make a request for it.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

NAEV - 2d action/rpg space game

Post by zAchAry »

http://bobbens.dyndns.org/projects/
http://blog.naev.org/downloads/

NAEV is played from a top-down perspective, featuring fast-paced combat, many ships, a large variety of equipment and a large galaxy to explore. The game is highly open-ended, letting you proceed at your own pace.
Image
Help to make Slackware easier Donate to Salix
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: NAEV - 2d action/rpg space game

Post by zAchAry »

SLKBUILD:

Code: Select all

#Packager: Anonymous <ano@address.com>

pkgname=naev
pkgver=0.4.2
pkgrel=1xx
source=(http://code.google.com/p/naev/downloads/detail?name=naev-$pkgver.tar.bz2)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://blog.naev.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"NAEV (2D space trading and combat game)"
"It was original based off Escape Velocity but with time has start to "
"evolve and get it’s own characteristics."
"NAEV is played from a top-down perspective, featuring fast-paced "
"combat, many ships, a large variety of equipment and a large galaxy "
"to explore. The game is highly open-ended, letting you proceed at "
"your own pace."
""
"http://code.google.com/p/naev/"
"http://blog.naev.org/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
.desktop:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=NAEV
Comment=2D space trading and combat game
Exec=naev
Terminal=false
Type=Application
Categories=Game;Action;
Icon=naev
Icon:

Code: Select all

http://is.gd/iBJGL
NDATA is required (134MB)

Code: Select all

http://blog.naev.org/downloads/
Usage: naev [OPTIONS] [DATA]
$ naev (whatever command you like, if at all) <PATH_TO_NDATA>
$ naev <PATH_TO_NDATA>
Image
Help to make Slackware easier Donate to Salix
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: NAEV - 2d action/rpg space game

Post by JRD »

A (IMHO) better one, based on zachary work:

Code: Select all

# vim: set ai et sw=2 st=2 ts=2 tw=0 syn=sh:
#Packager: Anonymous <ano@address.com>

pkgname=naev
pkgver=0.4.2
pkgrel=1xx
source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2 http://$pkgname.googlecode.com/files/ndata-$pkgver http://code.google.com/p/$pkgname/logo)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://blog.naev.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"NAEV (2D space trading and combat game)"
"It was original based off Escape Velocity but with time has start to "
"evolve and get it’s own characteristics."
"NAEV is played from a top-down perspective, featuring fast-paced "
"combat, many ships, a large variety of equipment and a large galaxy "
"to explore. The game is highly open-ended, letting you proceed at "
"your own pace."
""
"http://code.google.com/p/naev/"
"http://blog.naev.org/"
)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --with-ndata-path=/usr/share/naev/ndata || return 1
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg || return 1
  mkdir -p $startdir/pkg/usr/share/naev
  cp $startdir/src/ndata-$pkgver $startdir/pkg/usr/share/naev/ndata
  mkdir -p $startdir/pkg/usr/share/applications
  cat > $startdir/pkg/usr/share/applications/naev.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=NAEV
Comment=2D space trading and combat game
Exec=naev
Terminal=false
Type=Application
Categories=Game;Action;
Icon=naev
EOF
  mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
  convert $startdir/src/logo -resize 48x48 $startdir/pkg/usr/share/icons/hicolor/48x48/apps/naev.png
  mkdir -p $startdir/pkg/usr/doc/
  mv $startdir/pkg/usr/share/doc/* $startdir/pkg/usr/doc/
  rmdir $startdir/pkg/usr/share/doc
}
One last thought: maybe /usr/lib/naev/ndata would be better than /usr/share/naev/ndata.

The dep file:

Code: Select all

binutils,cxxlibs|gcc-++,freetype,gcc,libX11,libXau,libXdmcp,libXext,libXrandr,libXrender,libjpeg,libogg,libpng,libtiff,libvorbis,libxcb,libxml2,lua,mesa,openal-soft,sdl,svgalib,zlib
I still have the same old problem with all games running SDL. Fullscreen is not working when you have two screens on Xinerama! It does the fullscreen over the two screens, which is obviously what I do not want. If someone has a solution, I'm glad to test it!
For now I run my SDL binaries with a helper script 'newX':

Code: Select all

#!/bin/sh
WMCOMMAND="openbox --sm-disable --replace"
NUM=1
while true; do
  if [ -e /tmp/.X$NUM-lock ]; then
    kill -0 $(cat /tmp/.X$NUM-lock) 2>/dev/null
    if [ $? -ne 0 ]; then
      rm -f /tmp/.X$NUM-lock
      break;
    else
      NUM=$(($NUM + 1))
    fi
  else
    break;
  fi
done
export DISPLAY=:$NUM
X $DISPLAY -config newX-xorg.conf -nolisten tcp vt6 & pidX=$!
$WMCOMMAND & pidWM=$!
$*
kill -9 $pidWM
kill -2 $pidX
With a newX-xorg.conf which is configured to use only one monitor. It works, but I need to either patch the .desktop files or run them from command line...not very practical.
Image
User avatar
schlawi54
Posts: 34
Joined: 14. Dec 2010, 11:31

Re: NAEV - 2d action/rpg space game

Post by schlawi54 »

As zachary writes, ndata is too big to ship within the package itself. Why would you then think about a static location for the file? It should be downloaded separately, maybe in doinst() after package installation or as a dependency.
"Besides, I think Slackware sounds better than 'Microsoft,' don't you?" (By Patrick Volkerding)
Post Reply