You are not logged in.

#1 2009-08-17 15:06:46

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

Tome 3.x-betas

Please provide pkgbuild for Troubles of Middle-earth 3.0 betas. This are almost perfectly stable and veRy playble versions.

Offline

#2 2009-08-17 21:24:14

AdrenalineJunky
Member
Registered: 2009-05-03
Posts: 149

Re: Tome 3.x-betas

you mean alphas? i'll give it a shot....

Offline

#3 2009-08-19 06:48:45

AdrenalineJunky
Member
Registered: 2009-05-03
Posts: 149

Re: Tome 3.x-betas

ok, so i've been working on this, but am an extreme noob at making pkgbuilds..

i started off with the tome stable pkgbuild in aur and started modifying it, i'm having a bit of a problem though, the package builds but once installed tries to find the cfg file in /usr/local/games/tome3/ and i can't seem to figure out how to fix that.

here is the pkgbuild as it is now

pkgname=tome
pkgver=300alpha19
pkgrel=1
pkgdesc="A tile-based dungeon crawler similar to Nethack, Rogue and Angband, based on the works of J.R.R. Tolkien."
arch=('i686' 'x86_64')
url="http://www.t-o-m-e.net"
license=('custom')
depends=('libx11' 'ncurses')
source=(http://www.t-o-m-e.net/dl/src/$pkgname-$pkgver-src.tar.bz2 \
        LICENSE)

md5sums=('7a993d72639da0f797a9e129b0b227de'
         '74183fd3880704df6ab64e4c2887b852')

build() {
  cd "${srcdir}/$pkgname-$pkgver-src/src"

  cp makefile.std makefile.std.chn || return 1

  sed -e 's@LIBDIR = ./lib/@LIBDIR = /usr/lib/tome/@' \
  -e 's@BINDIR = /usr/local/games@BINDIR = /usr/bin/@' \
  -e '130s@-DUSE_X11@-DUSE_X11 -DUSE_GCU@' \
  -e '133s@-lX11@-lX11 -lncurses@' makefile.std.chn > makefile.std || return 1

  make --file=makefile.std || return 1
  
  install -d "${pkgdir}/usr/lib"
  install -D -m755 "${srcdir}/$pkgname-$pkgver-src/src/tome3" "${pkgdir}/usr/bin/$pkgname" || return 1
  cp -R "${srcdir}/$pkgname-$pkgver-src/game" "${pkgdir}/usr/lib/$pkgname/" || return 1
  cp "${srcdir}/$pkgname-$pkgver-src/$pkgname.cfg" "${pkgdir}/usr/lib/$pkgname.cfg"

# license
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" || return 1
}

anybody have any suggestions?

Offline

#4 2009-08-20 04:19:51

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Tome 3.x-betas

Hello!

1. You can involve yourself into the PKGBUILD as Maintainer.
2. You can use install -d instead of cp, in some cases.
3.   install -Dm644 ${srcdir}/$pkgname-$pkgver-src/$pkgname.cfg ${pkgdir}/usr/lib/$pkgname.cfg
->   cp "${srcdir}/$pkgname-$pkgver-src/$pkgname.cfg" "${pkgdir}/usr/lib/$pkgname.cfg"
|| return 1
4. I didn't build the package, but you can check the *.pkg.tar.gz at the end with namcap.

Offline

#5 2009-08-20 05:02:38

AdrenalineJunky
Member
Registered: 2009-05-03
Posts: 149

Re: Tome 3.x-betas

thanks for the tips ^^

i changed that, still getting the same message after install though, heres the exact error message.

tome: Oops! Could not set the path(/usr/local/games/tome3/) to find tome.cfg. Aborting. (File not found)

i did some googling the other day and it said to change the LIBDIR, so just for sake of troubleshooting i edited the makefile to see if that would fix it really quick (i still have to do some more reading about sed and awk) but that didn't work either.

Offline

#6 2009-08-20 06:43:49

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Tome 3.x-betas

You can ask from author why didn't he put a README or INSTALL file into this, or tome --help option before searching this library, or any manual file.

Offline

#7 2009-08-20 12:17:52

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

Re: Tome 3.x-betas

Hmm shouldnt tome.cfg be in user home directory ?

Offline

Board footer

Powered by FluxBB