You are not logged in.
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
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
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
updated PKGBUILD
Offline
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
Mr. Green attended me on the fact that the shell script in /usr/bin did not work, so I've updated the PKGBUILD
Offline
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
Okay, I've edited my posts. The newest PKGBUILD is in the first post.
Offline
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
Okay, thanks for pointing that out, I've updated my first post.
Offline
You can remove the makedepends=('cvs') line. cvs is part of the base system.
Offline
You can remove the makedepends=('cvs') line. cvs is part of the base system.
done
Offline
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
That's a cvs version. Have you tried using a stable version?
Offline
1.99 is the stable version. :?
What the heck, I'll try out the source tarball...
Offline
Sorry to bump this, but what the heck is their new CVS password?
Offline