You are not logged in.
Ok I've got the PKGBUILD for Vultureseye now I've modified it, now I confess the work is not mine. But I presumed by changing references to nethack to slashem and vultureseye to vulturesclaw, this would work as the PKGBUILD is getting both.
But it seems I'm missing something could someone please point me in the right direction as I'm really not sure what is going on.
pkgname=vulturesclaw
pkgver=2.1.0
pkgrel=1
pkgdesc="An isometric graphics interface to NetHack."
arch=('i686' 'x86_64')
url="http://www.darkarts.co.za/projects/vultures/"
license=('custom')
depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'libpng' 'flex' 'bison')
source=(http://usrsrc.org/svn/vultures/releases/$pkgver/vultures-$pkgver-full.tar.bz2)
md5sums=('f448f4fa74f07178683640a3f7985944')
build() {
mkdir -p $startdir/pkg/usr/bin
mkdir -p $startdir/pkg/usr/share/applications
mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
mkdir -p $startdir/pkg/usr/share/licenses/custom/$pkgname
mkdir -p $startdir/pkg/usr/share/$pkgname
cd $startdir/src
# tar -jxf vultures-$pkgver-full.tar.bz2?format=raw
cd $startdir/src/vultures-$pkgver/slashem/sys/unix
sh setup.sh
cd $startdir/src/vultures-$pkgver/slashem/include
sed -e '/define HACKDIR/ s|/usr/games/lib/nethackdir|/usr/share/vulturesclaw|' \
-e '/^#define COMPRESS\s/ 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 $startdir/src/vultures-$pkgver/slashem
sed -e '/^GAMEDIR\s*=/ s|/games/.*$|/share/$(GAME)|' \
-e '/^GAMEUID\s*=/ s|games|root|' \
-e '/^GAMEGRP\s*=/ s|bin|root|' \
-e '/^SHELLDIR\s*=/ s|/games|/bin|' -i Makefile
make || return 1
make PREFIX=$startdir/pkg/usr install
cd $startdir/pkg/usr/bin
sed 's|HACKDIR=/.*/pkg/usr/share/vulturesclaw|HACKDIR=/usr/share/vulturesclaw|' -i vulturesclaw
install -Dm644 $startdir/src/vultures-$pkgver/slashem/dat/license $startdir/pkg/usr/share/licenses/$pkgname/license
install -Dm644 $startdir/src/vultures-$pkgver/dist/linux/vulturesclaw.desktop $startdir/pkg/usr/share/applications/vulturesclaw.desktop
install -Dm644 $startdir/pkg/usr/share/$pkgname/vulturesclaw.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/vulturesclaw.png
}
This seems to be bailing out on the 1st or second sed the error I'm getting is
sed: can't read vulturesclaw: No such file or directory
I have to admit the few package builds I've done have been a lot simpler in comparison so I suspect the error is between the chair and the keyboard.
Last edited by FeatherMonkey (2007-11-17 17:46:04)
Offline
The error is probably from the last sed command :
sed 's|HACKDIR=/.*/pkg/usr/share/vulturesclaw|HACKDIR=/usr/share/vulturesclaw|' -i vulturesclaw
For vultureseye the file that starts the program is called vultureseye , vulturesclaw/slashem may use a different start script.
Check the files in pkg/usr/bin to find the correct name for the start script.
Sidenote :
this line in my vultureseye PKGBUILD is incorrect :
mkdir -p $startdir/pkg/usr/share/licenses/custom/$pkgname
it should be mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
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
Thankyou Lone_Wolf
Hope you don't mind me modifying your work but I confess I'm still learning, and mastering those sed commands.
Offline
Its taken my limited knowledge to its limits I really haven't got a clue whats going on.
For some reason I seem to be getting nothing in pkg nothing seems to be making it to the pkg structure, yet it compiles for a while and seems to be doing everything. It seems to
Yet when I install using the make home its definitely vulturesclaw, it just seems to be too steep of learning curve for me.
By the way vultureseye compiles on 64bit fine, thankyou for the fine work.
Last edited by FeatherMonkey (2007-11-17 21:56:24)
Offline
Thankyou Lone_Wolf
Hope you don't mind me modifying your work but I confess I'm still learning, and mastering those sed commands.
No problem, modifying aur PKGBUILDS is a great way to learn how those things work.
Don' t give up yet, when i made the vultureseye PKGBUILD i was stuck at a point similar to your problem now.
I had to look closely at the source files to understand why it worked with a manual install, but not in the pkg dir.
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