You are not logged in.

#1 2010-04-09 08:04:27

Dinth
Member
From: London
Registered: 2009-03-02
Posts: 238

[resolved] CorsixTH pkgbuild - need some help

Ive made PKGBUILD for CorsixTH game - opensource reimplementation of famous Theme Hospital game. Unfortunately i didnt managed to make package installation in it work. Here is my pkgbuild:

# Mantainer: Michał "Dinth" Gawroński <dinth1906@gmail.com>

pkgname=corsixth-svn
pkgver=633
pkgrel=1
pkgdesc="Opensource remake of famouse Theme Hospital game"
arch=(i686 x86_64)
url="http://code.google.com/p/corsix-th/"
license=('LGPL')
depends=('sdl' 'sdl_mixer' 'lua')
makedepends=('subversion' 'cmake' 'timidity++')
provides=('corsixth')
conflicts=('corsixth')
source=()
md5sums=()

_svntrunk="http://corsix-th.googlecode.com/svn/trunk/"
_svnmod="corsix-th-read-only"

build() {
  cd ${srcdir}

  if [[ -d ${_svnmod}/.svn ]]; then
     (cd ${_svnmod} && svn up -r $pkgver)
  else
     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
  fi

  msg "SVN checkout done or server timeout"
  msg "Compiling..."
  
  cd corsix-th-read-only
  cmake . || return 1
  cd CorsixTH
  make || return 1
  make install || return 1
  
  
}

Could somebody help me with this ?

Last edited by Dinth (2010-04-09 09:00:28)

Offline

#2 2010-04-09 08:22:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [resolved] CorsixTH pkgbuild - need some help

Apparently you looked at another SVN PKGBUILD or two to work out the _svn* variables. Did you not also see

make DESTDIR="$pkgdir" install

in the same place - or something similar, to direct the install commands to your package root, and not your system root?

If you're still unclear, install abs and have a look at /usr/share/pacman/PKGBUILD-svn.proto.

Offline

#3 2010-04-09 09:00:42

Dinth
Member
From: London
Registered: 2009-03-02
Posts: 238

Re: [resolved] CorsixTH pkgbuild - need some help

thanks a lot. I forgot about DESTDIR <lol>

Offline

#4 2010-06-02 22:28:54

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: [resolved] CorsixTH pkgbuild - need some help

This is pretty cool. Have to find my original theme hospital disc!!

Offline

Board footer

Powered by FluxBB