You are not logged in.

#26 2008-10-11 08:55:57

ak-89
Member
From: Finland
Registered: 2008-08-26
Posts: 86
Website

Re: Classic-style games like Commander Keen and Duke Nukum for Linux...?

Someone ported Studio Pixel's Cave story(Doukutsu monogatari) to linux. I made a PKGBUILD..
http://en.wikipedia.org/wiki/Cave_Story
http://www.cavestory.org/

Config app is from original windows version, that's why it depends on wine.

pkgname=linuxdoukutsu
pkgver=1.01
pkgrel=1
pkgdesc="Cave Story. Game by Studio Pixel."
arch=('i686')
url=()
license=('Freeware')
depends=('wine' 'sdl')
source=(http://www.scibotic.com/uploads/linuxdoukutsu-1.01.tar.bz2)
md5sums=('ec08da7c45419bc7740b8149ec7340cf')

build() {
echo -e "#!/bin/sh
cd /opt/"$pkgname"
./doukutsu.bin" > ""$startdir""/doukutsu

echo -e "#!/bin/sh
cd /opt/"$pkgname"
wine DoConfig.exe" > "$startdir"/doukutsu-config

mkdir -p "$pkgdir"/opt/"$pkgname"/
cp -r "$srcdir"/linuxDoukutsu-"$pkgver"/doc "$pkgdir"/opt/"$pkgname"/
cp -r "$srcdir"/linuxDoukutsu-"$pkgver"/data "$pkgdir"/opt/"$pkgname"/

touch "$startdir"/Profile.dat

install -m666 "$srcdir"/linuxDoukutsu-"$pkgver"/Config.dat "$pkgdir"/opt/"$pkgname"/Config.dat
install "$srcdir"/linuxDoukutsu-"$pkgver"/DoConfig.exe "$pkgdir"/opt/"$pkgname"/DoConfig.exe
install -m755 "$srcdir"/linuxDoukutsu-"$pkgver"/doukutsu.bin "$pkgdir"/opt/"$pkgname"/doukutsu.bin
install -m666 "$startdir"/Profile.dat "$pkgdir"/opt/"$pkgname"/Profile.dat
install -D -m755 "$startdir"/doukutsu "$pkgdir"/usr/bin/doukutsu
install -m755 "$startdir"/doukutsu-config "$pkgdir"/usr/bin/doukutsu-config
}

//edit: updated PKGBUILD little..

Last edited by ak-89 (2008-10-11 11:15:38)

Offline

#27 2008-10-11 10:04:46

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Classic-style games like Commander Keen and Duke Nukum for Linux...?

Quote all the $startdir (i.e, "$stardir") and do not use "$stardir"/src or "$stardir"/pkg anymore you should use "$srcdir" and "$pkgdir".

And since there is a windows program inside you may like the pieces of advice of the wiki about packing them.

BUT... Thanks for the gem!

Offline

#28 2008-10-11 10:06:59

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Classic-style games like Commander Keen and Duke Nukum for Linux...?

dmz wrote:

Oh, I've never really understood what those CHD's really is.

Compressed Hard Disk is correct. Some newer game machines include an hard drive for storing large quantity of data. MAME emulates them via chd files. That's it.

Offline

#29 2008-10-11 11:08:53

ak-89
Member
From: Finland
Registered: 2008-08-26
Posts: 86
Website

Re: Classic-style games like Commander Keen and Duke Nukum for Linux...?

ezzetabi wrote:

Quote all the $startdir (i.e, "$stardir") and do not use "$stardir"/src or "$stardir"/pkg anymore you should use "$srcdir" and "$pkgdir".

And since there is a windows program inside you may like the pieces of advice of the wiki about packing them.

BUT... Thanks for the gem!

I edited it a little. Noticed wrong license and edited those $srcdir:s etc.. I just edited that from some other PKGBUILD and forgot the license. It was initially intended only for own use, so that's why i did'nt even read any guidelines.

Offline

Board footer

Powered by FluxBB