You are not logged in.

#1 2005-06-23 20:43:32

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

[new] No Gravity

Hi, I've made a PKGBUILD for no gravity, a 3d space shooter.
http://www.realtech-vr.com/nogravity/

# Contributor: Bart Leusink <bartleusink@gmail.com>
# Modified by CyberTron <packages@linuxportalen.com>

pkgname=nogravity-cvs
pkgver= 1.99
pkgrel=5
pkgdesc="No Gravity is a fantastic and futuristic universe made of five intergalactic worlds. An arcade type game with great playability, where it is easy to plunge into space battles against spacefighters, space stations and more !"
url="http://www.realtech-vr.com/nogravity/index.html"
license=
depends=('sdl' 'libvorbis' 'libogg' 'libpng' 'sdl_mixer')
makedepends=()
install=
source=(http://dl.sourceforge.net/nogravity/rt-nogravity-data.zip)
md5sums=('62f2e125397f73948c8c400d5c464e00')

build() {
   cd $startdir/src       
         cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/nogravity login
         cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/nogravity co -P nogravity
        cd $startdir/src/nogravity/src/Linux
        ./bootstrap
./configure --enable-sound=sdl_mixer
make
mkdir -p $startdir/pkg/usr/games/nogravity/
mkdir -p $startdir/pkg/usr/bin/
cp nogravity $startdir/pkg/usr/games/nogravity/
cd $startdir/src/
cp NOGRAVITY.RMX $startdir/pkg/usr/games/nogravity/
echo "#!/bin/bash" > $startdir/pkg/usr/bin/nogravity
echo "cd /usr/games/nogravity/" >> $startdir/pkg/usr/bin/nogravity
echo "./nogravity" >> $startdir/pkg/usr/bin/nogravity
chmod 755 $startdir/pkg/usr/bin/nogravity
 } 

Offline

#2 2005-06-23 21:07:24

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

Re: [new] No Gravity

some typos in your pkggbuild i belive, (no expert)

all the depends should be like: depends=('sdl' 'libvorbis' )
makedepends should be like that too (not sure if you need that in this case, since most of the packages are the same as depends)

and md5sums

other than that, nice work: D going to install it now..


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

#3 2005-06-23 21:12:51

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] No Gravity

A few comments. You should keep the license field empty.  It is not implemented yet.  Also, no need to include gcc and zlib in dependencies as they are in the current repo so everyone have them installed.
You might want to use :
pkgname=nogravity-cvs
and pkgver=  the actual version of the program.  Once these corrections are made, you can put it in AUR.

Offline

#4 2005-06-23 21:22:31

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: [new] No Gravity

updated PKGBUILD

Offline

#5 2005-06-23 22:08:22

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

Re: [new] No Gravity

you should make the $startdir/pkg/usr/bin/nogravity executable as well

this could be done something like this I believe (haven't tried it yet):


# Contributor: Bart Leusink <bartleusink@gmail.com>
#Modified by CyberTron <packages@linuxportalen.com>

pkgname=nogravity-cvs
pkgver= 1.99
pkgrel=2
pkgdesc="No Gravity is a fantastic and futuristic universe made of five intergalactic worlds. An arcade type game with great playability, where it is easy to plunge into space battles against spacefighters, space stations and more !"
url="http://www.realtech-vr.com/nogravity/index.html"
license=
depends=('sdl' 'libvorbis' 'libogg' 'libpng' 'sdl_mixer')
makedepends=('cvs' 'sdl'  'cvs' 'libvorbis' 'libogg' 'libpng')
install=
source=(http://dl.sourceforge.net/nogravity/rt-nogravity-data.zip)
md5sums=('62f2e125397f73948c8c400d5c464e00')

build() {
   cd $startdir/src       
         cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/nogravity login
         cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/nogravity co -P nogravity
        cd $startdir/src/nogravity/src/Linux
        ./bootstrap
./configure --enable-sound=sdl_mixer
make
mkdir -p $startdir/pkg/usr/games/nogravity/
mkdir -p $startdir/pkg/usr/bin/
cp nogravity $startdir/pkg/usr/games/nogravity/
cd $startdir/src/
cp NOGRAVITY.RMX $startdir/pkg/usr/games/nogravity/
echo "#!/bin/bash" > $startdir/pkg/usr/bin/nogravity
echo "/usr/games/nogravity/nogravity" >> $startdir/pkg/usr/bin/nogravity
chmod 755 $startdir/pkg/usr/bin/nogravity
 } 

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 08:35:27

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: [new] No Gravity

Mr. Green attended me on the fact that the shell script in /usr/bin did not work, so I've updated the PKGBUILD

Offline

#7 2005-06-24 11:00:00

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

Re: [new] No Gravity

instead of posting the pkgbuild multiple times, its best to say "PKGBUILD updated, check first post for new pkgbuild"
and edit the original post.

some times threads can become quite large, and having to hunt through them for updated pkgbuilds can be tiresome, I usually expect the first posted pkgbuild to be the most up to date one, although experience has taught me to check anyway.

It also shortens the length of the thread and makes it easier to read.
you can also keep a running changelog in that post listing what was updated etc..

its also a good idea to list when the pkgbuild was last updated, so people can update their packages if theirs are older..
or just increment the pkgrel variable..

suffice to say, its MUCH more convenient!

thanks, I hope you have fun contributing to the distro

Offline

#8 2005-06-24 12:03:04

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: [new] No Gravity

Okay, I've edited my posts. The newest PKGBUILD is in the first post.

Offline

#9 2005-06-24 14:01:39

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

Re: [new] No Gravity

just for the sake of completeness, as cybertron said.. you dont need to add duplicate entries in the makedepends variable


depends=('sdl' 'libvorbis' 'libogg' 'libpng' 'sdl_mixer')
makedepends=('cvs' 'sdl'  'cvs' 'libvorbis' 'libogg' 'libpng') 

would become

depends=('sdl' 'libvorbis' 'libogg' 'libpng' 'sdl_mixer')
makedepends=('cvs') 

and thanks for updating your original post!

Offline

#10 2005-06-24 14:28:51

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: [new] No Gravity

Okay, thanks for pointing that out, I've updated my first post.

Offline

#11 2005-06-24 17:28:07

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] No Gravity

You can remove the makedepends=('cvs') line. cvs is part of the base system.

Offline

#12 2005-06-26 10:32:22

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: [new] No Gravity

Snowman wrote:

You can remove the makedepends=('cvs') line. cvs is part of the base system.

done smile

Offline

#13 2005-07-24 02:05:17

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [new] No Gravity

Thanks for this package, but I have 2 little problems here:

1. Keyboard arrows will not control direction (yes, I specified the keyboard as the input device). This is minor; it's probably smarter to use the mouse, at any rate.

2. Firing your weapons causes the game to segfault. :?

Are these bugs in the game, or are they the result of compile errors?

Offline

#14 2005-07-24 03:49:15

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] No Gravity

That's a cvs version.  Have you tried using a stable version?

Offline

#15 2005-07-24 11:53:31

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [new] No Gravity

1.99 is the stable version. :?

What the heck, I'll try out the source tarball...

Offline

#16 2005-09-05 05:04:29

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [new] No Gravity

Sorry to bump this, but what the heck is their new CVS password?

Offline

Board footer

Powered by FluxBB