updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / cave-story-plus / PKGBUILD
blob2f0b8668b7341798f4617d158355560ed2e1c67b
1 # Maintainer: Gerardo Marset <gammer1994@gmail.com>
3 pkgname=cave-story-plus
4 pkgver=4
5 pkgrel=1
6 pkgdesc="The extended version of Cave Story, a side-scrolling platformer game"
7 arch=('i686' 'x86_64')
8 url="http://www.nicalis.com/"
9 license=('custom')
10 depends=('sdl' 'mesa')
11 source=(cavestoryplus-linux-1324519044.tar.gz
12         $pkgname
13         $pkgname.png
14         $pkgname.desktop)
15 md5sums=('af4ddd7457af307bf4567a955173e633'
16          '5ab10e98223a35700be65c206daa0103'
17          'adcc3ca581a90018074747d1dc00e2b4'
18          '426350078c2d76dbc42112f10cf59d35')
19 options=(!strip)
21 build() {
22   cd CaveStory+
24   # Create the game directory.
25   mkdir -p $pkgdir/opt/$pkgname
27   # Copy the data directory.
28   cp -r data $pkgdir/opt/$pkgname
30   # Are these needed in the new version?
31   # Work around a bug in the game.
32   #ln -s {L,$pkgdir/opt/$pkgname/data/base/Stage/l}ounge.pxm
33   #ln -s {L,$pkgdir/opt/$pkgname/data/base/Stage/l}ounge.pxe
34   #ln -s {L,$pkgdir/opt/$pkgname/data/base/Stage/l}ounge.tsc
36   # Work around some other seemingly not-so-important "not found" errors.
37   #ln -s {b,$pkgdir/opt/$pkgname/data/base/B}k0.bmp
38   #ln -s {b,$pkgdir/opt/$pkgname/data/base/ogph/B}k0.bmp
40   # Install the binary.
41   if [ "$CARCH" == "i686" ] ; then
42     install -Dm755 CaveStory+ $pkgdir/opt/$pkgname
43   else
44     install -Dm755 CaveStory+_64 $pkgdir/opt/$pkgname/CaveStory+
45   fi
47   # Install the startup script.
48   mkdir -p $pkgdir/usr/bin
49   install -m755 $srcdir/$pkgname $pkgdir/usr/bin
51   # Install icons and .desktop files.
52   mkdir -p $pkgdir/usr/share/{icons,applications}
53   install -m644 $startdir/$pkgname.png $pkgdir/usr/share/icons
54   install -m644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications
57 # vim: set sts=2 sw=2 et: