You are not logged in.

#1 2006-03-21 22:37:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Vultures Eye (isometric interface for nethack)

A few years ago i found nethack, liked the idea, but NOT the available interfaces. Suse 8 had falcon's eye , an isomentric interface.
Recently i started looking for falcon's eye again to see if i could get it working on archlinux.
Falcon's eye is now dead, but there's a fork called Vultures that looks a lot better.
The AUR has an old orphaned package, and i am now trying to adapt it to the latest version.
(and if i succeed, i'll adopt the package)

This is the adapted pkgbuild sofar :

pkgname=vultures
pkgver=1.11.2
pkgrel=1
pkgdesc="An isometric graphics interface to NetHack."
url="http://www.darkarts.co.za/projects/vultures/"
license="free"
depends=('qt' 'sdl' 'x-server')
source=(http://www.darkarts.co.za/projects/vultures/downloads/$pkgver/$pkgname-$pkgver-eye.tar.gz)
md5sums=('6bfc8d81468a992e45b72bc15b922dae')

build() {
  mkdir -p $startdir/pkg/usr/bin
  cd $startdir/src/$pkgname-$pkgver/nethack/sys/unix
  sh setup.sh
  cd $startdir/src/$pkgname-$pkgver/nethack
  sed "47s:^/* ::" -i ./include/config.h
  sed "47s:*/::" -i ./include/config.h
  sed '/^WINSRC/s/$/ $(WINQTSRC)/' -i ./src/Makefile
  sed '/^WINOBJ/s/$/ $(WINQTOBJ)/' -i ./src/Makefile
  sed '/^WINLIB/s/$/ $(WINQTLIB)/' -i ./src/Makefile
  sed 's/-lqt/-lqt-mt/' -i ./src/Makefile
  sed '/^VARDATND =/s/$/x11tiles rip.xpm nhsplash.xpm/' -i ./Makefile
  sed "s:$(shell pwd)/compiled:$startdir/pkg/usr:" -i ./Makefile
  make || return 1
  make DESTDIR=$startdir/pkg install

  cd $startdir/pkg/usr/bin
  ln -s ../games/nethack nethack
}

when i run makepkg, i get these compile errors :

../util/makedefs -v
make[2]: Entering directory `/var/abs/local/vultures/src/vultures-1.11.2/nethack/win/vultures'
make[2]: *** No rule to make target `../nethack/src/monst.o', needed by `build_n/tiletrans'.  Stop.
make[2]: Leaving directory `/var/abs/local/vultures/src/vultures-1.11.2/nethack/win/vultures'
make[1]: *** [../win/vultures/build_n/vultures.o] Error 2
make[1]: Leaving directory `/var/abs/local/vultures/src/vultures-1.11.2/nethack/src'
make: *** [vultureseye] Error 2
==> ERROR: Build Failed.  Aborting...

I would like some tips what causes this, or where i should look for the cause.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#2 2006-03-30 21:56:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: Vultures Eye (isometric interface for nethack)

Ok, after searching for the above error it became clear that one of the  makefiles didn't point to the right directory for the source. I checked the makefile and found the error and corrected it.
I also looked at the PKGBUILD for nethack, and copied the relevant parts.

Although there are some compile errors, compiliation is now succesfull.
There is however, one BIG problem :
the top level makefile uses a fixed prefix /usr where all the compiled stuff goes and ignores the DESTDIR setting.
Can someone give me a hint how to correct this ?

# Maintainer : Lone_Wolf

pkgname=vultureseye
pkgver=1.11.2
pkgrel=0.2
pkgdesc="An isometric graphics interface to NetHack."
url="http://www.darkarts.co.za/projects/vultures/"
license=('custom')
depends=('sdl' 'sdl_mixer' 'sdl_image')
source=(http://www.darkarts.co.za/projects/vultures/downloads/$pkgver/vultures-$pkgver-eye.tar.gz)
md5sums=('6bfc8d81468a992e45b72bc15b922dae')


build() {
  cd $startdir/src/vultures-$pkgver/nethack/sys/unix
  sh setup.sh
  cd $startdir/src/vultures-$pkgver/nethack/win/vultures
  sed 's|NHDIR := ../$(BUILD)|NHDIR := ../../../$(BUILD)|' -i GNUmakefile
  cd $startdir/src/vultures-$pkgver/nethack/include
#  sed -e '/define HACKDIR/ s|/usr/games/lib/nethackdir|/usr/share/nethack/|' 
  sed -e '/^#define COMPRESSs/ s|/usr/bin/compress|/bin/gzip|' 
      -e '/^#define COMPRESS_EXTENSION/ s|".Z"|".gz"|' 
      -e 's|^/* (#define DLB) */|1|' -i config.h
  sed -e 's|^/* (#define LINUX) */|1|' 
      -e 's|^/* (#define TIMED_DELAY) */|1|' -i unixconf.h
  cd ..
  sed -e '/^GAMEDIRs*=/ s|/games/.*$|/share/$(GAME)|' 
      -e '/^GAMEUIDs*=/ s|games|root|' 
      -e '/^GAMEGRPs*=/ s|bin|root|' 
      -e '/^SHELLDIRs*=/ s|/games|/bin|' -i Makefile

  make || return 1
  make DESTDIR=$startdir/pkg install
  sed -e 's|HACKDIR=.*/pkg/usr/|HACKDIR=/usr/|' 
      -i $startdir/pkg/usr/bin/nethack
  install -Dm644 dat/license $startdir/pkg/usr/share/licenses/$pkgname/license
} 

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2006-03-30 22:06:53

WillySilly
Member
Registered: 2005-01-14
Posts: 268

Re: Vultures Eye (isometric interface for nethack)

If it is prefix=/usr then replace DESTDIR to prefix

Offline

#4 2006-03-30 22:41:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: Vultures Eye (isometric interface for nethack)

Thanks very much, WilliSilly.
the pkgbuild is now final, and i'll adopt the package and upload it to aur.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB