Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=18a45833f33cef0e8aace35c7d0737343443a64f

commit 18a45833f33cef0e8aace35c7d0737343443a64f
Author: Devil505 <devil505li...@gmail.com>
Date:   Wed Feb 16 09:37:40 2011 +0100

megaglest-3.4.0-1-i686
* new package

diff --git a/source/games-extra/megaglest/FrugalBuild 
b/source/games-extra/megaglest/FrugalBuild
new file mode 100644
index 0000000..291c39b
--- /dev/null
+++ b/source/games-extra/megaglest/FrugalBuild
@@ -0,0 +1,54 @@
+# Compiling Time: 0.16 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=megaglest
+pkgver=3.4.0
+pkgrel=1
+pkgdesc="Fork of Glest, a 3D real-time strategy game in a fantastic world."
+depends=('curl' 'xerces-c' 'sdl' 'libvorbis' 'openal' 'libgl' 'lua')
+makedepends=('jam' '7zip' 'wxgtk')
+groups=('games-extra')
+archs=('i686' 'x86_64')
+_F_sourceforge_ext=".tar.bz2"
+_F_sourceforge_name="${pkgname}-source"
+_F_cmake_confopts="-DWANT_SVN_STAMP=OFF -DCMAKE_BUILD_TYPE=Release"
+Finclude sourceforge cmake
+options=('nobuild')
+source=($source \
+    
http://sourceforge.net/projects/megaglest/files/current_release/$pkgname-fixed_data-3.4.0.7z
 \
+    $pkgname.png $pkgname.sh)
+sha1sums=('ef7a24549aa6a2762a77d8da30ea20e91c8b3c14' \
+          '32439e2225365f27f15b6ce4726d50d844680cc8' \
+          'a9f232296dc8c5eb1cdacd1866f2c44369977ac9' \
+          'cebc6849fc4a56e5c4a99beaa3d039956076175b')
+
+_F_desktop_name="Megaglest"
+_F_desktop_icon="megaglest"
+_F_desktop_categories="Game"
+
+
+build() {
+  Fcd ${pkgname}-source-${pkgver}/
+
+  CMake_make
+
+  # Megaglest doesn't have a nice installer. Let's package it ourselves.
+  # Damnit, upstream.
+  Fmkdir usr/{bin,share/${pkgname}}
+  Fexe $pkgname.sh usr/bin/$pkgname
+  Fexe ${pkgname}-source-${pkgver}/mk/linux/glest.bin 
usr/share/${pkgname}/$pkgname
+  Fexe ${pkgname}-source-${pkgver}/mk/linux/glest_configurator 
usr/bin/glest_configurator
+  Fexe ${pkgname}-source-${pkgver}/mk/linux/glest_editor usr/bin/glest_editor
+  Finstall 644 glest.ini usr/share/$pkgname
+  Finstall 644 glestkeys.ini usr/share/$pkgname
+  Finstall 644 servers.ini usr/share/$pkgname
+
+  ## Moving datas
+  cd $Fsrcdir || Fdie
+  mv data maps scenarios techs tilesets tutorials 
$Fdestdir/usr/share/$pkgname/ || Fdie
+
+  Fdesktop2
+  Ficon ${pkgname}.png
+}
+
+# optimization OK
diff --git a/source/games-extra/megaglest/megaglest.png 
b/source/games-extra/megaglest/megaglest.png
new file mode 100644
index 0000000..65e5d98
Binary files /dev/null and b/source/games-extra/megaglest/megaglest.png differ
diff --git a/source/games-extra/megaglest/megaglest.sh 
b/source/games-extra/megaglest/megaglest.sh
new file mode 100644
index 0000000..571a01b
--- /dev/null
+++ b/source/games-extra/megaglest/megaglest.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+ # Wrapper script for Megaglest.
+
+ MAINDIR=/usr/share/megaglest
+ BASEDIR="$HOME/.config"
+ DIR="$BASEDIR/megaglest"
+ if [ ! -d "$DIR" ]; then
+ mkdir -p $DIR
+ fi
+ cd $DIR
+ [ -f glest.ini ] || cp /usr/share/megaglest/glest.ini .
+ [ -h megaglest ] || ln -s /usr/share/megaglest/megaglest .
+ [ -f servers.ini ] || cp $MAINDIR/servers.ini .
+ [ -f glestkeys.ini ] || cp $MAINDIR/glestkeys.ini .
+ for i in data scenarios techs tilesets tutorials; do
+ [ -h $i ] || ln -s $MAINDIR/$i .
+ done
+ [ -d maps ] || mkdir maps
+ [ -d screens ] || mkdir screens
+ cd maps
+ for i in $MAINDIR/maps/*; do
+ [ -h `basename $i` ] || ln -s $i .
+ done
+ cd ..
+
+ exec ./megaglest
\ No newline at end of file
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to