[Frugalware-git] frugalware-current: 0ad-alpha_1-1-i686 * new package * added icon * added exe and desktop files * nobuild package

Devil505 devil505linux at gmail.com
Mon Aug 30 12:41:50 CEST 2010


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

commit 9b594273dc4e6f3feb42c0652787021cee7554c2
Author: Devil505 <devil505linux at gmail.com>
Date:   Mon Aug 30 12:40:32 2010 +0200

0ad-alpha_1-1-i686
* new package
* added icon
* added exe and desktop files
* nobuild package

diff --git a/source/games-extra/0ad/0ad-editor.desktop b/source/games-extra/0ad/0ad-editor.desktop
new file mode 100644
index 0000000..cded424
--- /dev/null
+++ b/source/games-extra/0ad/0ad-editor.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Categories=Application;Game;
+Name=0 A.D. Editor
+Name[es]=Editor de 0 A.D.
+Name[gl]=Editor do 0 A.D.
+Icon=0ad
+Exec=0ad-editor
+Terminal=false
+Type=Application
diff --git a/source/games-extra/0ad/0ad-editor.sh b/source/games-extra/0ad/0ad-editor.sh
new file mode 100644
index 0000000..f40c03c
--- /dev/null
+++ b/source/games-extra/0ad/0ad-editor.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/0ad/system
+./pyrogenesis -editor
diff --git a/source/games-extra/0ad/0ad.desktop b/source/games-extra/0ad/0ad.desktop
new file mode 100644
index 0000000..0f527f3
--- /dev/null
+++ b/source/games-extra/0ad/0ad.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Categories=Application;Game;
+Name=0 A.D.
+Icon=0ad
+Exec=0ad
+Terminal=false
+Type=Application
diff --git a/source/games-extra/0ad/0ad.png b/source/games-extra/0ad/0ad.png
new file mode 100644
index 0000000..5708568
Binary files /dev/null and b/source/games-extra/0ad/0ad.png differ
diff --git a/source/games-extra/0ad/0ad.sh b/source/games-extra/0ad/0ad.sh
new file mode 100644
index 0000000..26d7752
--- /dev/null
+++ b/source/games-extra/0ad/0ad.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/0ad/system
+./pyrogenesis $*
diff --git a/source/games-extra/0ad/FrugalBuild b/source/games-extra/0ad/FrugalBuild
new file mode 100644
index 0000000..5cf581b
--- /dev/null
+++ b/source/games-extra/0ad/FrugalBuild
@@ -0,0 +1,64 @@
+# Compiling Time: 1.14 SBU
+# Maintainer: Devil505 <devil505linux at gmail.com>
+
+pkgname=0ad
+pkgver=alpha_1
+_pkgver=r07970-alpha
+pkgrel=1
+pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
+url="http://wildfiregames.com/0ad"
+depends=('enet<=1.2.2' 'gamin' 'binutils' 'openal' 'libvorbis' 'libboost-mt' 'devil' 'wxgtk-u8' 'libuuid' 'spidermonkey' 'zlib' 'libxml2' 'cryptopp')
+makedepends=('boost' 'nasm' 'unzip' 'zip')
+groups=('games-extra')
+archs=('i686' 'x86_64')
+up2date=$pkgver
+options=('nobuild')
+source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
+	"http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-data.tar.xz"
+	$pkgname.sh \
+	$pkgname-editor.sh \
+	$pkgname.desktop \
+	$pkgname-editor.desktop \
+	$pkgname.png)
+sha1sums=('2a36a7ce2c6903ba8a59c83cd19fb164fa6d5e12' \
+          '48ef5e121701657a82fcd30f58dde14e313f6ad0' \
+          'baaf84703f3bba35383d66def28d99586edcc4bf' \
+          '3cc2183fc60bfd60bf0b8d8e32a9c56a38c27dd0' \
+          'a45b63522d6c47488814eb8bfa767e6dc6c5a778' \
+          'd9a378757fd83733626af39288407f7b675a484d' \
+          '7fb3789ff31576cf4accb799bc36a9d43766e073')
+
+build(){
+
+	Fcd "${pkgname}-${_pkgver}/build/workspaces"
+	./update-workspaces.sh || Fdie
+
+	cd $Fsrcdir/${pkgname}-${_pkgver}/build/workspaces/gcc || Fdie
+
+	# Official recomendations about -j parameter.
+	if [[ $CARCH = 'x86_64' ]]
+	  then
+ 	   CONFIG=Release make -j3 || Fdie
+	  else
+ 	   CONFIG=Release make -j2 || Fdie
+	fi
+
+	Fmkdir usr/share/$pkgname
+	cp -r $Fsrcdir/${pkgname}-${_pkgver}/binaries/* $Fdestdir/usr/share/$pkgname || Fdie
+
+	# Removing useless stuff.
+	# This might change between releases:
+	Frm usr/share/$pkgname/system/*r
+	Frm usr/share/$pkgname/system/*.a
+	Frm usr/share/$pkgname/system/*t
+	Frm usr/share/$pkgname/system/*debug.so
+
+	Fexe ${pkgname}.sh /usr/bin/${pkgname}
+	Fexe ${pkgname}-editor.sh usr/bin/${pkgname}-editor
+
+	Finstall 644 ${pkgname}.desktop usr/share/applications/${pkgname}.desktop
+	Finstall 644 ${pkgname}-editor.desktop usr/share/applications/${pkgname}-editor.desktop
+	Ficon ${pkgname}.png
+}
+
+# optimization OK


More information about the Frugalware-git mailing list