You are not logged in.

#1 2010-04-04 18:27:06

leech
Member
Registered: 2010-04-04
Posts: 3

[REQUEST] xu4 - Ultima IV Recreated.

Here's my first attempt at creating a package for Arch, I only just switched to using Arch last week from my beloved Debian.  I'm loving Arch just as much!

I'm actually shocked that xu4 isn't already packages, since the AUR has all the other little Ultima projects with proper PKGBUILDs.

Here's what I have so far, I had to build from the svn, because there is a bug in the 1.0b3 version that makes Hawkwind not work (for those who don't remember, or haven't played Ultima 4 (and if you haven't, you should be ashamed!), Hawkwind is the seer who tells you how you are doing on your path to Avatarhood.  Pretty important to the game.

pkgname=xu4-svn
pkgver=2725
pkgrel=1
pkgdesc="xu4 - Ultima IV recreated (SVN Version)"
arch=('i686' 'x86_64')
license=('GPL')
url="http://xu4.sourceforge.net"
depends=('sdl' 'sdl_mixer' 'libxml2' 'zlib')
makedepends=('pkgconfig' 'make' 'subversion' )
optdepends=('timidity++: MIDI music to Wave converter')
options=('')
provides=('xu4')
conflicts=('xu4')
source=()
md5sums=()
_svntrunk=https://xu4.svn.sourceforge.net/svnroot/xu4
_svnmod=xu4

build() {
svn co $_svntrunk $_svnmod
  msg "SVN checkout done or server timeout"
  msg "Starting make..."
     cd ${srcdir}/$_svnmod/trunk/u4/src/
        sed -itest 's/\/local//' Makefile
make || return 1
make DESTDIR="$pkgdir" install || return 1
rm -rf ${srcdir}/$_svnmod
}

Unfortunately there isn't a configure script, or even anything to generate one.  Only a Makefile, so I used sed to change the prefix from /usr/local to /usr.

It builds everything, but then gives me this error.

install -D u4 /usr/bin/u4
install: cannot create regular file `/usr/bin/u4': Permission denied
make: *** [install] Error 1
==> ERROR: Build Failed.
    Aborting...

It's as if the fakeroot environment isn't working properly.  Saw a few posts about this, but no conclusive way to fix it.

The only other thing the package will then need to do is grab the Ultima 4 data files, which are free to download.  They are located here http://aleron.dl.sourceforge.net/source … 4-1.01.zip and an upgraded graphics file is at http://aleron.dl.sourceforge.net/source … upgrad.zip.

From the xu4.spec file that is in the svn download, they should be put in /usr/lib/u4, though I think it should propbably be in /usr/share/u4 (then again this is coming from a Debian guy who knows that any data files should be in share, rather than lib...not sure what those RPM using guys were thinking)

Thanks for any help on this. 

Leech

Edit: Added timidity for optional depends for Midi music.

Last edited by leech (2010-04-04 18:39:28)

Offline

Board footer

Powered by FluxBB