Installing UnAngband And possibly other variants) into given location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SaThaRiel
    Adept
    • Nov 2009
    • 174

    Installing UnAngband And possibly other variants) into given location

    Hi,

    im still working on PKGBUILDs of maintained *Bands for Archlinux. I already built one for Posband. NPPAngband, Angband, EyAngband, Hengband, Mangband and Zangband already exists (so quite a lot).
    My next one should be a PKGBUILD for UnAngband. Sadly there is no configure script included in the package. So i compiled it successfully as a user. But to install it, i need to change the Paths to

    /usr/bin for the unangband binary
    /usr/lib/unangband (or something similar) for the lib/* directory tree.

    Sadly i dont know where to change the install Paths. Looks a bit like i have to patch the config.h to reflect the Library-Path, but maybe there is another way/idea?
    I already tried the ANGBAND_PATH environment variable, which doesnt seem to work. Andrew pointed me to the forums since he doesnt maintain the linux port directly.

    The same question seems to come up also for Gumband. So please help me bringing the Angband multiverse to Arch

    Edit: I think, i found it. A simple
    Code:
    mv config.h config.h.org
    sed -e 's/\#\ define\ DEFAULT_PATH\ \"\.\/lib\/\"/\#\ define\ DEFAULT_PATH\ \"\/usr\/lib\/unangband\/\"/' config.h.org > config.h
    will do the trick. Sure i have to change some permissions, but it seems to work.
    A better/simpler way is still appreciated.
    Last edited by SaThaRiel; November 30, 2009, 14:35.
    Proud candidate for the Angband Darwin Award!
  • SaThaRiel
    Adept
    • Nov 2009
    • 174

    #2
    Ok, now i got available for Archlinux:
    - TinyAngband: Compiles without any problem, works nice
    - Xangband: Same maintainer as Xangband, no problems
    - Posband: Had to do some tricks, but is compiling without problems
    - UnAngband: with the trick from the post above i am able to install it into a given location. Compiles with some warnings, but seems to run flawlessy.
    - Steamband: Need to do some tricks to get it compiling, still throws a lot of errors about unused variables and the like. It runs - but i fear, that there maybe some problems later. Is there a way to contact the maintainer, if there is still one?

    So, basically i think i made all "different" and maintained Variants available. Tried a day or something to get gumband running, but it doesn't work.
    Z+Angband will be made available too - still have some compilation errors and also its a bit sad that it will conflict with Zangband.
    DajAngband cant be made available since it is managed by a downloader site - must check, if i can bypass this somehow. Than i can make a PKGBUILD for it.

    Is there some Version missing? Maybe Sangband, but the homepage is down (again)?
    Proud candidate for the Angband Darwin Award!

    Comment

    • Magnate
      Angband Devteam member
      • May 2007
      • 5110

      #3
      I plan to package Sangband for Debian once V3.1.2 is out. You could then probably do the Archlinux conversion more easily. (But don't feel obliged to wait - Sang is available from the Furytech mirror.)
      "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

      Comment

      • SaThaRiel
        Adept
        • Nov 2009
        • 174

        #4
        Hm, compiling sangband is really straight forward - not more complicated than UnAngband.
        Sadly it doesnt run - suggesting, that i need at least a 80x46 curses screen. I only got 169x42 here on my netbook (already a small font). Must test it later on another PC.
        Biggest problem is, that it is packed with rar. A commercial and not supported for linux format which won't be accepted by Archlinux as a packaging system. Must check, what can be done to extract the sources. Normally source packages can be in zip, tar.gz, tbz or whatever. But not in rar.
        Proud candidate for the Angband Darwin Award!

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          Did you get FA done in the end?
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • SaThaRiel
            Adept
            • Nov 2009
            • 174

            #6
            Originally posted by Nick
            Did you get FA done in the end?
            Well, its running in GCU mode. But still having the problem with the Fonts. I also tried 8x12x as default font, but no luck.
            Proud candidate for the Angband Darwin Award!

            Comment

            • pav
              Administrator
              • Apr 2007
              • 793

              #7
              Originally posted by SaThaRiel
              Biggest problem is, that it is packed with rar. A commercial and not supported for linux format which won't be accepted by Archlinux as a packaging system.
              What's the problem with RAR? There's official unrar-for-linux command line thing, comes as a source code under BSD License...
              See the elves and everything! http://angband.oook.cz

              Comment

              • SaThaRiel
                Adept
                • Nov 2009
                • 174

                #8
                Well, Archlinux uses bsdtar for extracting downloaded source files - as mentioned above it works like the BSD Ports system. bsdtar doesnt understand rar as a format. So i am not sure how to handle the package. Maybe i will repack it with an install-script after download into tar.gz or zip or something.
                AFAIK unrar is not installed with the normal build-group which is used for packge building, so i have to add it as a prerequisite. Will search through the forums if i find someone with a similar problem and a proper solution. Im sure i am not the first one who ran into this.
                Proud candidate for the Angband Darwin Award!

                Comment

                • pav
                  Administrator
                  • Apr 2007
                  • 793

                  #9
                  bsdtar? Cool, looks like Tim's work is bearing fruits in the most unexpected places

                  But surely your Ports-alike framework can employ any binary to extract sources, not just bsdtar...? Otherwise it would be significantly limited.
                  See the elves and everything! http://angband.oook.cz

                  Comment

                  • SaThaRiel
                    Adept
                    • Nov 2009
                    • 174

                    #10
                    Well - i figured it out. It can be told to do no extract and then the sources can be extracted in the build-process with unrar.
                    But since i mostly work here on my netbook i cant try sangband. As mentioned before, it compiles but it wont run here because of the screen size. And i have no idea why it need such a "big" screen. Can the 80x46 thingy be changed somewhere and the game will still run?
                    Proud candidate for the Angband Darwin Award!

                    Comment

                    • SaThaRiel
                      Adept
                      • Nov 2009
                      • 174

                      #11
                      Ok, i found out, why the 80x46 curses screen is needed for Sangband. Just because of the startup picture! Later it doesnt seem to use such a "big" screen anymore except for messages.
                      So if its just because of the startup picture (which indeed looks nice) i want to change this and maybe skip it if the resolution isnt high enough. So i need an idea how to do this. I wont support a pkgbuild-script for a game which i can't use on all of my pcs.

                      Additionally i really would like to have some cyberpunk themed Angband variants if there are any. I know CyAngband, but this is dead since years and also not available for pc. But i am still checking informations on a lot of variants, maybe i stumble across more stuff here. Anyway any hint for such a themed variant would be nice.
                      Proud candidate for the Angband Darwin Award!

                      Comment

                      Working...
                      😀
                      😂
                      🥰
                      😘
                      🤢
                      😎
                      😞
                      😡
                      👍
                      👎