updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / sonny2 / PKGBUILD
blob810103aa321fc9319c85a2171095a339337d445d
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=sonny2
4 pkgver=2.2
5 pkgrel=3
6 pkgdesc='Combat based RPG where you play as a Zombie, level up and gain items to advance to the next Zone (Flash game).'
7 arch=('any')
8 url='http://armorgames.com/'
9 license=('custom')
10 makedepends=("imagemagick")
11 depends=('flashplayer-standalone')
12 _baseurl="http://armorgames.com/files/games"
13 _baseiconurl="http://armorgames.com/files/thumbnails"
14 _iconextension="jpg"
15 _game="sonny-2-2900"
16 source=("${_baseurl}/${_game}.swf"
17         "${pkgname}.desktop"
18         "${_baseiconurl}/${_game}.${_iconextension}"
19         "${pkgname}.sh")
20 md5sums=('795fbd9da1ceb8ac748b9b227f2def3c'
21          'c2bbf4d570340ed010042acf040a1dcf'
22          '26edd8d91235e7b52e591c597177fd0d'
23          'eb54e10baa0e4ab6faca69f82441f23d')
25 build() {
26   # Convert icon format
27   convert "${srcdir}/${_game}.${_iconextension}" "${srcdir}/${pkgname}.png"
30 package() {
31   # Install the .swf file
32   install -Dm644 "${srcdir}/${_game}.swf" "${pkgdir}/usr/share/games/${pkgname}/${pkgname}.swf"
34   # Install launch script
35   install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
37   # Install .desktop file
38   install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
40   # Install icon
41   install -Dm644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/icons/${pkgname}.png"