You are not logged in.
Please provide pkgbuild for Troubles of Middle-earth 3.0 betas. This are almost perfectly stable and veRy playble versions.
Offline
you mean alphas? i'll give it a shot....
Offline
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
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
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
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
Hmm shouldnt tome.cfg be in user home directory ?
Offline