updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / doukutsu / PKGBUILD
blobcd29fb31ca7416bb9634a9e39d088c72a39822b6
1 # Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
2 # Contributor: Victor Feight <vrfeight3 at gmail dot com>
3 # Contributor: Frozen Fox <frozenfoxz at gmail dot com>
5 pkgname=doukutsu
6 pkgver=1.2
7 pkgrel=2
8 pkgdesc="Japanese freeware PC side-scrolling platformer game (aka Cave Story)"
9 url="http://www.cavestory.org/"
10 arch=('i686' 'x86_64')
11 license=('custom:freeware')
13 if [ "$CARCH" == "i686" ]; then
14   depends=('bash' 'sdl' 'libxinerama' 'libxft')
15 else
16   depends=('bash' 'sdl' 'lib32-libxinerama' 'lib32-libxft')
19 makedepends=('fltk')
21 source=("http://www.cavestory.org/downloads/linuxdoukutsu-1.01.tar.bz2"
22         "http://www.cavestory.org/downloads/linuxDoukutsu-1.2.zip"
23         "http://www.cavestory.org/downloads/DoConfigure-r2.zip"
24         "doukutsu.desktop"
25         "doukutsu-config.desktop"
26         "doukutsu.png"
27         "doukutsu")
29 md5sums=('ec08da7c45419bc7740b8149ec7340cf'
30          'e73d7330fba3cc5c15f0eeb239df586f'
31          '9f5e96d5ff9671691b7c8a41f8fa5880'
32          'd2633fb77949eb404f3199191e328bf3'
33          'ca872e3276959cb523f57f0785c1a034'
34          'd73dee54b24f2ceb21a50e2c8f71da10'
35          '0bad0312fd7f924a333ff34bde61d138')
38 package() {
39   cd "${srcdir}"
40   rm DoConfigure
41   g++ DoConfig.cpp -o DoConfigure -s $(fltk-config --cxxflags --ldflags)
44 build() {
45   cd "${srcdir}/linuxDoukutsu-1.01"
47   install -dm755 ${pkgdir}/{opt/${pkgname},usr/share/{doc/${pkgname},applications}}
48   cp -r {Config.dat,data,doc,doukutsu} "${pkgdir}/opt/${pkgname}/"
50   if [ "$CARCH" == "i686" ]; then
51     install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_32bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin"
52   else
53     install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_64bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin"
54   fi
56   install -Dm644 ${srcdir}/*.desktop "${pkgdir}/usr/share/applications/"
57   install -Dm644 ${srcdir}/doukutsu.png "${pkgdir}/usr/share/pixmaps/doukutsu.png"
58   install -Dm644 doc/* "${pkgdir}/usr/share/doc/${pkgname}/"
60   install -Dm755 ${srcdir}/DoConfigure "${pkgdir}/opt/${pkgname}/DoConfigure"
61   install -Dm755 ${srcdir}/doukutsu "${pkgdir}/usr/bin/doukutsu"
64 # vim:set ts=2 sw=2 et: