1 # Contributor: Simon Bachmann <simonbachmann@freesurf.ch>
2 # Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
7 pkgdesc="A game with a magic ray and many, many mirrors..."
9 url="http://www.artsoft.org/mirrormagic/"
11 depends=('sdl_image' 'sdl_mixer')
13 source=("http://www.artsoft.org/RELEASES/unix/mirrormagic/${pkgname}-${pkgver}.tar.gz"
15 "mirrormagic.desktop")
17 md5sums=('32fd3909c1e27f493d89bc2276da6744'
18 '6722c4b1b9e2e0db71014c75c1369c03'
19 '0c7628c7bf19dd20eb018043e50d6997')
22 cd "${srcdir}/${pkgname}-${pkgver}"
23 #fix an error in main.h
24 patch -p1 < "${srcdir}/main_h.diff"
26 make RO_GAME_DIR="/usr/share/${pkgname}" RW_GAME_DIR=~/.${pkgname} sdl
30 cd "${srcdir}/${pkgname}-${pkgver}"
34 install -dm755 "${pkgdir}/usr/share/${pkgname}"
35 cp -r graphics levels music scores sounds "${pkgdir}/usr/share/${pkgname}"
39 install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
40 install -m644 CHANGES CREDITS INSTALL README TODO "${pkgdir}/usr/share/doc/${pkgname}"
44 install -D -m755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
46 # install desktop entry file
48 install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
51 # vim:set ts=2 sw=2 et: