You are not logged in.

#1 2005-01-27 00:57:46

Hostile
Member
From: Michigan
Registered: 2005-01-27
Posts: 21

supertux pkgbuild

I made a supertux pkgbuild for the heck of it...its a Super Mario Bros. Like game but with Tux! lol very fun actually.  Here it is:

# Contributer: Logan Anteau <Hostile@TotalIRC.Net>

pkgname=supertux
pkgver=0.1.2
pkgrel=1
pkgdesc="A game similar to Super Mario Bros, but with Tux the penguin."
url="http://super-tux.sourceforge.net"
depends=('sdl' 'sdl_mixer' 'sdl_image')
source=(http://voxel.dl.sourceforge.net/sourceforge/super-tux/$pkgname-$pkgver.tar.bz2)
md5sums=('7c10acf574f09ae5cb9eb2a4b9bf93ff')
build() {
  cd $startdir/src/$pkgname-$pkgver
  if [ -f /usr/lib/libGL.so.1 ]; then
        echo "you may be using NVidia drivers, preloading /usr/lib/libGL.so.1"
        export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libGL.so.1
  fi
  ./configure --prefix=/usr || return 1
  make || return 1
  make prefix=$startdir/pkg/usr install || return 1
  cp $startdir/src/$pkgname-$pkgver/src/supertux $startdir/pkg/usr/bin/
  chmod 755 $startdir/pkg/usr/bin/supertux
}

[code]
[hostile]
Server = http://lanteau.homelinux.org/~lanteau/arch/hostile/
[/code]
PKGBUILDs available at http://lanteau.homelinux.org/~lanteau/arch/pkgbuilds/

Offline

#2 2005-01-27 06:54:28

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: supertux pkgbuild

Good, that one was on my list.

Currently i'm building some more games:
BOS
Scorched3D
supertux
TORCS
Trigger
TuxFootball
Widelands

I've a small question: if you do make install, why do you still need to copy supertux executeable? Can't be possible that make install doesn't copy the executable, would be nonsense to have an install script then.

If so, I'd rather patch the makefile.

// STi


Ability is nothing without opportunity.

Offline

#3 2005-01-27 20:38:06

Hostile
Member
From: Michigan
Registered: 2005-01-27
Posts: 21

Re: supertux pkgbuild

I don't know personally you might not have to, or it could be to ensure that the permissions would be right on that file? Mine only has that because I modeled it off of the Frozen-Bubble PKGBUILD and it worked so I didn't take it out..you might be able to though. Also if you need any help with those games tell me. smile


[code]
[hostile]
Server = http://lanteau.homelinux.org/~lanteau/arch/hostile/
[/code]
PKGBUILDs available at http://lanteau.homelinux.org/~lanteau/arch/pkgbuilds/

Offline

#4 2005-01-27 21:04:48

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: supertux pkgbuild

The package i've built for supertux now:

PKGBUILD

# $Id: PKGBUILD,v 1.0 2005/01/20 12:02:18 ggrabler Exp $
# Maintainer: ggrabler <ggrabler@chello.at>
# Contributor: Georg Grabler <ggrabler@chello.at>

pkgname=supertux
pkgver=0.1.2
pkgrel=1
pkgdesc="TUX Super Mario clone."
url="http://supertux.sourceforge.net/"

source=(http://ovh.dl.sourceforge.net/sourceforge/supertux/$pkgname-$pkgver.tar.bz2 
        configure.patch)
md5sums=('7c10acf574f09ae5cb9eb2a4b9bf93ff' 'c7b8b69260236d48728cfdde5a789915')


build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ../configure.patch || return 1
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

configure.patch

--- supertux-0.1.2/configure    2004-08-10 19:48:40.000000000 +0000
+++ ../configure        2005-01-27 18:25:29.000000000 +0000
@@ -340,7 +340,7 @@
 bindir='${exec_prefix}/bin'
 sbindir='${exec_prefix}/sbin'
 libexecdir='${exec_prefix}/libexec'
-datadir='${prefix}/share'
+datadir='${prefix}/share/games'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'

The configure patch is just about replacing the prefix of the shared objects, moving it from  /share to /share/games. So not necessary to get supertux running.

// STi


Ability is nothing without opportunity.

Offline

Board footer

Powered by FluxBB