You are not logged in.

#1 2009-12-25 09:45:26

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

FAangband

Here's my PKGBUILD. Unfortunately game doesnt run sad Im trying to fix it from yesterday, but still no luck.
Somebody could help me ?

# Contributor: Michal Gawronski <dinth1906 at gmail dot com>

pkgname=faangband
pkgver=1.0.3
pkgrel=1
pkgdesc="Is a variant of Angband roguelike game. Its principal focus as a variant is to immerse the player in the world of Tolkien's Silmarillion late in the First Age."
arch=('i686' 'x86_64')
url="http://angband.oook.cz/faangband/"
license=('GPL v2')
groups=()
depends=(ncurses libx11)
makedepends=(sdl gtk2)
optdepends=('sdl: SDL frontend'
        'gtk2: GTK+ v2 frontend')
source=('http://angband.oook.cz/faangband/FAangband103.tar.gz')
noextract=()
md5sums=('ab21d9a515912766f8f0453e0146d2a1')

build() {
    cd $srcdir/FAangband103
    ./configure \
    --prefix=/usr \
    --enable-sdl \
    --enable-gtk \
    --with-libpath=/usr/share/faangband
    --with-setgid=games
    cp ./src/config.h ./src/config.h.bak || return 1
    sed -e 's@# define DEFAULT_PATH "./lib/"@# define DEFAULT_PATH "/usr/share/faangband"@' ./src/config.h.bak > ./src/config.h || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    install -Dm644 copying.txt $pkgdir/usr/share/licenses/faangband/COPYING
    find $startdir/pkg/usr/share/$pkgname/ -name delete.me -exec rm {} \;
    find $startdir/pkg/usr/share/$pkgname/ -name 'Makefile*' -exec rm {} \;
}

Offline

#2 2009-12-27 17:54:11

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: FAangband

"Doesn't run" is pretty useless. What doesn't work? Error messages?

Offline

#3 2009-12-30 15:09:49

jolinfire
Member
From: France
Registered: 2007-12-21
Posts: 176

Re: FAangband

Maybe you should add your user to games group ?

sudo gpasswd -a username games

Just a guess, of course.

Offline

#4 2009-12-30 20:37:54

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: FAangband

sdl seems to be the only interface I could get to work, so I hardcoded the sdl deps.. I couldn't even figure out how to start the gtk interface (although I didn't look very hard), but I included it in the build anyway.

PKGBUILD

pkgname=faangband
pkgver=1.0.3
pkgrel=1
pkgdesc="An Angband variant set in the First Age of Tolkien's Silmarillion world"
arch=('i686' 'x86_64')
url="http://angband.oook.cz/faangband/"
license=('GPL')
depends=('sdl_image' 'sdl_mixer' 'sdl_ttf')
makedepends=('libglade')
optdepends=('libglade: GTK+ interface')
install=$pkgname.install
source=(http://angband.oook.cz/$pkgname/FAangband${pkgver//.}.tar.gz)
md5sums=('ab21d9a515912766f8f0453e0146d2a1')

build() {
  cd "$srcdir/FAangband${pkgver//.}"
  ./configure --prefix=/usr --enable-sdl --enable-gtk
  make || return 1
}

package() {
  cd "$srcdir/FAangband${pkgver//.}"
  make DESTDIR="$pkgdir" install
  find "$pkgdir/usr/share/$pkgname" -name delete.me -delete
}

faangband.install

post_install() {
  echo "+++ You must manually create ~/.angband if it doesn't already exist:"
  echo "+++   $ mkdir -p ~/.angband"
}

post_upgrade() {
  post_install $1
}

Offline

#5 2010-01-11 01:49:57

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: FAangband

Well Dinth hasn't responded in over 2 weeks, so I went ahead and submitted it to the AUR:

AUR - faangband

Offline

Board footer

Powered by FluxBB