updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / stendhal / PKGBUILD
blob32429d346883ff90f50ec1b7b5d93516af2c6ded
1 # Maintainer: Rikles <style.boubou@gmail.com>
2 # Contributer: Ghost1227 (ghost1227 at archlinux dot us)
3 pkgname=stendhal
4 pkgver=0.98
5 pkgrel=1
6 pkgdesc="A fully fledged free open source multiplayer online adventure game (MORPG) developed using the Arianne game system."
7 arch=('any')
8 url="http://stendhalgame.org/"
9 license=('GPL')
10 depends=('java-runtime')
11 makedepends=('unzip')
12 source=("http://sourceforge.net/projects/arianne/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.zip")
13 noextract=("${pkgname}-${pkgver}.zip")
14 md5sums=('f798767960fb3021416e57ef26c19003')
16 build() {
17   unzip "${srcdir}/${pkgname}-${pkgver}.zip" -d "${srcdir}/${pkgname}-${pkgver}"
20 package() {
21   cat > "${srcdir}/${pkgname}" <<EOF
22 #!/bin/bash
23 "\$JAVA_HOME/bin/java" -jar '/opt/${pkgname}/${pkgname}-starter.jar'
24 EOF
26   cat > "${srcdir}/${pkgname}.desktop" <<EOF
27 [Desktop Entry]
28 Type=Application
29 Version=1.0
30 Name=Stendhal
31 Comment=A fully fledged free open source multiplayer online adventure game (MORPG) developed using the Arianne game system.
32 Exec=${pkgname}
33 Terminal=false
34 Categories=Game;Java;
35 EOF
37   mkdir -p "${pkgdir}/opt/${pkgname}"
38   cp -r "${srcdir}/${pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}/"
39   install -D -m 755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
40   install -D -m 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
41   chmod 755 "${pkgdir}/opt/${pkgname}/${pkgname}-starter.jar"