You are not logged in.

#1 2004-09-27 23:04:31

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Neverball

Hi,
When I downloaded the new version of neverball (1.4.0) I noticed that I could not figure out how to play the neverputt levels.
Anyways I fixed the problem with the package and now neverputt should work. I am pretty inexperienced when it comes to package building so the fix is kind of crude.
(Note: You have to invoke the "neverputt" command to use it.)
Sorry, I did not know how to tell the package maintainer the problem or to show him new code. Hopefully he sees it and fixes the problem.

# $Id: PKGBUILD,v 1.12 2004/09/22 11:21:32 eric Exp $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Ben <contrasutra@myrealbox.com>

pkgname=neverball
pkgver=1.4.0
pkgrel=2
pkgdesc="3D game similar to Super Monkey Ball or Marble Madness"
url="http://icculus.org/neverball/"
depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'libvorbis' 'bash' 'x-server')
license=('GPL')
source=(http://icculus.org/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('a6cd860f1c2b7d8cecbcfc05ff228ef0')

build() {
  cd $startdir/src/$pkgname-$pkgver

Note: That this next 2 lines are supposed to be on same line

  /bin/sed -i -e 's/CFLAGS= -Wall -O3 -ansi $(shell sdl-config --cflags)/CFLAGS= -Wall -O3 -march=i686 -pipe -ansi $(shell sdl-config --cflags)/' Makefile

Heres the rest:

  X11_PATH=-L/usr/X11R6/lib /usr/bin/make || return 1
  /bin/mkdir -p $startdir/pkg/usr/share/neverball/bin
  /bin/mkdir $startdir/pkg/usr/bin
  /bin/cp neverball $startdir/pkg/usr/share/neverball/bin
  /bin/cp neverputt $startdir/pkg/usr/share/neverball/
  /bin/cp -r data/ $startdir/pkg/usr/share/neverball
  /bin/chmod -R a+r $startdir/pkg/usr/share/neverball
  /bin/echo '#!/bin/sh' > $startdir/pkg/usr/bin/neverball
  /bin/echo 'exec /usr/share/neverball/bin/neverball /usr/share/neverball/data'' >> $startdir/pkg/usr/bin/neverball
  /bin/chmod 0755 $startdir/pkg/usr/bin/neverball
  /bin/chmod 0755 $startdir/pkg/usr/share/neverball/bin/neverball
  /bin/chmod 0755 $startdir/pkg/usr/share/neverball/neverputt
 /bin/cp neverball $startdir/pkg/usr/share/neverball/bin
  /bin/cp neverputt $startdir/pkg/usr/share/neverball/
  /bin/cp -r data/ $startdir/pkg/usr/share/neverball
  /bin/chmod -R a+r $startdir/pkg/usr/share/neverball
  /bin/echo '#!/bin/sh' > $startdir/pkg/usr/bin/neverball

Next two lines are supposed to be on same line

  /bin/echo 'exec /usr/share/neverball/bin/neverball /usr/share/neverball/data'$  /bin/chmod 0755 $startdir/pkg/usr/bin/neverball

Heres the final part of PKGBUILD.

  /bin/chmod 0755 $startdir/pkg/usr/share/neverball/bin/neverball
  /bin/chmod 0755 $startdir/pkg/usr/share/neverball/neverputt
  /bin/echo 'cd /usr/share/neverball' >> /usr/bin/neverputt
  /bin/echo './neverputt' >> /usr/bin/neverputt
  /bin/chmod 0755 /usr/bin/neverputt
}

Sorry for the messy code.

Offline

#2 2004-09-28 10:33:57

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: Neverball

Nice work, jftaylor21.  Well... except for the fact that now you've got me hooked on neverputt! wink

I reworked your PKGBUILD a little bit, but I appreciate the fix to neverball.  You've made a good package even better.

BTW, in the future, you can use the Maintainer's email address in the PKGBUILD (or pacman -Qi pkgname) to find out who to contact.  Or, you can submit a flyspray (bug) task on bugs.archlinux.org.

Cheers,
farphel


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

Board footer

Powered by FluxBB