summaryrefslogtreecommitdiff
path: root/community/megaglest/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/megaglest/PKGBUILD')
-rw-r--r--community/megaglest/PKGBUILD33
1 files changed, 9 insertions, 24 deletions
diff --git a/community/megaglest/PKGBUILD b/community/megaglest/PKGBUILD
index 204d82fac..1cd5a0fd6 100644
--- a/community/megaglest/PKGBUILD
+++ b/community/megaglest/PKGBUILD
@@ -1,23 +1,21 @@
-# $Id: PKGBUILD 45457 2011-04-22 00:47:15Z svenstaro $
+# $Id: PKGBUILD 46547 2011-05-09 02:22:08Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
pkgname=megaglest
-pkgver=3.5.0
-pkgrel=3
+pkgver=3.5.1
+pkgrel=1
pkgdesc="Fork of Glest, a 3D real-time strategy game in a fantastic world."
arch=('i686' 'x86_64' 'mips64el')
url="http://sourceforge.net/projects/megaglest/"
license=('GPL3')
depends=('curl' 'megaglest-data' 'xerces-c' 'sdl' 'libvorbis' 'openal' 'mesa' 'lua' 'icu')
makedepends=('ftjam' 'p7zip' 'wxgtk' 'cmake')
-source=("http://downloads.sourceforge.net/project/${pkgname}/current_release/${pkgname}-source-${pkgver}.tar.bz2"
- "megaglest.sh")
-md5sums=('03cb7e67be3e72ac0147b23c6b91eb2a'
- 'e3d6abbe79263d2fa5edb0bcbcf8755a')
+source=("http://downloads.sourceforge.net/project/${pkgname}/current_release/${pkgname}-source-${pkgver}.tar.xz")
+md5sums=('924a02881b2e7e2fc68910d41ce51d8a')
build() {
- cd ${srcdir}/${pkgname}-source-${pkgver}/
+ cd ${srcdir}/${pkgname}-${pkgver}/
[[ -d build ]] && rm -r build
mkdir build && cd build
@@ -29,23 +27,10 @@ build() {
}
package() {
- cd ${srcdir}/${pkgname}-source-${pkgver}/
+ cd ${srcdir}/${pkgname}-${pkgver}/
- # Megaglest doesn't have a nice installer. Let's package it ourselves.
- # Damnit, upstream.
- install -d -m 0755 "${pkgdir}"/usr/{bin,share/${pkgname}}
- install -m 0755 "${srcdir}"/$pkgname.sh "${pkgdir}"/usr/bin/$pkgname
- install -m 0755 mk/linux/megaglest.bin "${pkgdir}"/usr/share/${pkgname}/$pkgname
- install -m 0755 mk/linux/megaglest_configurator "${pkgdir}"/usr/bin/megaglest_configurator
- install -m 0755 mk/linux/megaglest_editor "${pkgdir}"/usr/bin/megaglest_editor
- install -m 0644 glest.ini glestkeys.ini servers.ini "${pkgdir}"/usr/share/$pkgname
-
- sed -i s/Exec=.*/Exec=${pkgname}/g ${pkgname}.desktop
- sed -i s/Icon=.*/Icon=${pkgname}/g ${pkgname}.desktop
- install -D -m 0644 "${pkgname}.desktop" "${pkgdir}"/usr/share/applications/${pkgname}.desktop
- install -D -m 0644 "${pkgname}.png" "${pkgdir}"/usr/share/pixmaps/${pkgname}.png
-
- install -Dm755 code_license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ cd build
+ make DESTDIR=$pkgdir install
}
# vim: sw=2:ts=2 et: