1 # Maintainer: Absolosba <absolosba at gmail dot com>
5 pkgdesc="A clone/engine-rewrite of the classic jump-and-run platformer Cave Story."
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"
16 md5sums=('92bc4576a8c7d558a171bcfa1745a371'
17 'c1dc82ff36837e70c36f5a5b38aa7e70'
18 '4d15e2ac8bea8f3a742d269e2381efa2'
19 'd73dee54b24f2ceb21a50e2c8f71da10'
20 'c69d57618def7874381fe7688215120d')
22 source=("http://nxengine.sourceforge.net/dl/nx-lin64-1002.tar.gz"
23 "http://shii.org/pixel/cavestory.zip"
27 md5sums=('e81a5f123017862dafbe05a3b459ca43 '
28 'c1dc82ff36837e70c36f5a5b38aa7e70'
29 '4d15e2ac8bea8f3a742d269e2381efa2'
30 'd73dee54b24f2ceb21a50e2c8f71da10'
31 'c69d57618def7874381fe7688215120d')
33 install=nxengine.install
35 if [ "$CARCH" == "i686" ]; then
36 cd "${srcdir}/nx-lin32-1002" || return 1
38 cd "${srcdir}/nx-lin64-1002" || return 1
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: