You are not logged in.
Pages: 1
Here's my PKGBUILD. Unfortunately game doesnt run 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
"Doesn't run" is pretty useless. What doesn't work? Error messages?
[git] | [AURpkgs] | [arch-games]
Offline
Maybe you should add your user to games group ?
sudo gpasswd -a username games
Just a guess, of course.
Offline
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
Well Dinth hasn't responded in over 2 weeks, so I went ahead and submitted it to the AUR:
Offline
Pages: 1