updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nxengine / PKGBUILD
blobb34130d2bb0638367ae7f60b0fa1b4af869ff4d0
1 # Maintainer: Absolosba <absolosba at gmail dot com>
2 pkgname=nxengine
3 pkgver=1.0.0.2
4 pkgrel=2
5 pkgdesc="A clone/engine-rewrite of the classic jump-and-run platformer Cave Story."
6 arch=('i686' 'x86_64')
7 url="http://nxengine.sourceforge.net/"
8 license=('GPL3/freeware')
9 depends=('sdl' 'sdl_ttf')
10 if [ "$CARCH" == "i686" ]; then
11     source=("http://nxengine.sourceforge.net/dl/nx-lin32-1002.tar.gz"
12         "http://shii.org/pixel/cavestory.zip"
13         "nxengine.desktop"
14         "doukutsu.png"
15         "nxengine")
16     md5sums=('92bc4576a8c7d558a171bcfa1745a371'
17          'c1dc82ff36837e70c36f5a5b38aa7e70'
18          '4d15e2ac8bea8f3a742d269e2381efa2'
19          'd73dee54b24f2ceb21a50e2c8f71da10'
20          'c69d57618def7874381fe7688215120d')
21 else
22     source=("http://nxengine.sourceforge.net/dl/nx-lin64-1002.tar.gz"
23         "http://shii.org/pixel/cavestory.zip"
24         "nxengine.desktop"
25         "doukutsu.png"
26         "nxengine")
27     md5sums=('e81a5f123017862dafbe05a3b459ca43 '
28          'c1dc82ff36837e70c36f5a5b38aa7e70'
29          '4d15e2ac8bea8f3a742d269e2381efa2'
30          'd73dee54b24f2ceb21a50e2c8f71da10'
31          'c69d57618def7874381fe7688215120d')
33 install=nxengine.install
34 build(){
35          if [ "$CARCH" == "i686" ]; then
36              cd "${srcdir}/nx-lin32-1002" || return 1
37          else
38              cd "${srcdir}/nx-lin64-1002" || return 1
39          fi
40          install -dm755 ${pkgdir}/usr/share/{${pkgname},applications} || return 1
41          cp -r * "${pkgdir}/usr/share/${pkgname}/" || return 1
42          cd "${srcdir}/cavestory" || return 1
43          cp -r {Doukutsu.exe,data} "${pkgdir}/usr/share/${pkgname}/" || return 1
44          install -Dm644 ${srcdir}/*.desktop "${pkgdir}/usr/share/applications/" || return 1
45          install -Dm644 "${srcdir}/doukutsu.png" "${pkgdir}/usr/share/pixmaps/nxengine.png" || return 1
46          install -Dm755 "${srcdir}/nxengine" "${pkgdir}/usr/bin/nxengine" || return 1
49 # vim:set ts=2 sw=2 et: