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

commit f50d374ace34f3a555a9a5cd7a8708d38a689a31
Author: Slown <[email protected]>
Date:   Mon May 28 19:19:57 2012 +0100

acm-5.0-ico-20100109-1-i686

* new package

diff --git a/source/games-extra/acm-5.0-ico/FrugalBuild 
b/source/games-extra/acm-5.0-ico/FrugalBuild
new file mode 100644
index 0000000..8d1d7f6
--- /dev/null
+++ b/source/games-extra/acm-5.0-ico/FrugalBuild
@@ -0,0 +1,47 @@
+# Compiling Time: 0.05 SBU
+# Maintainer: Slown <[email protected]>
+
+pkgname=acm-5.0-ico
+pkgver=20100109
+pkgrel=1
+pkgdesc="A fork of the ACM flight simulator"
+url="http://www.icosaedro.it/acm/download.html";
+depends=('libxext' 'tk')
+makedepends=('libxpm')
+groups=('games-extra')
+archs=('i686' 'x86_64')
+up2date="Flasttar $url"
+source=(http://www.icosaedro.it/acm/$pkgname-$pkgver.tar.gz \
+       $pkgname.png \
+       $pkgname.patch)
+sha1sums=('b5417c1993240b3ce50df56465fd7166b7f68a30' \
+          'cd60f0a9ebcb9d49090316cca79ca8fe5e5938ee' \
+          '3f9e6d9e3b20fd3e30a0f387c9d3db69a2ccd220')
+
+_F_desktop_name="ACM-5.0-ico"
+_F_desktop_exec="$pkgname.tk"
+_F_desktop_icon="/usr/share/pixmaps/$pkgname.png"
+_F_desktop_categories="Game;Simulation"
+
+build() {
+       Fcd
+       Fpatchall
+       ./configure --prefix=/usr
+       make || Fdie
+
+       # Install binary and launcher
+       Fexerel ./src/acm usr/bin/$pkgname
+       Fexerel acm.tk usr/bin/$pkgname.tk
+
+       # Install data files
+       Fmkdir /usr/share/$pkgname
+       Ffilerel objects/*.{acmscene,au,dxf,obv,txt} \
+               objects/inventory \
+               usr/share/$pkgname
+
+       Ffilerel src/acm.man usr/share/man/man6/$pkgname.6
+       Ficon $pkgname.png
+       Fdesktop2
+}
+
+# optimization OK
diff --git a/source/games-extra/acm-5.0-ico/acm-5.0-ico.patch 
b/source/games-extra/acm-5.0-ico/acm-5.0-ico.patch
new file mode 100644
index 0000000..71f8169
--- /dev/null
+++ b/source/games-extra/acm-5.0-ico/acm-5.0-ico.patch
@@ -0,0 +1,39 @@
+--- acm-5.0-ico-20100109.orig/src/manifest.h   2009-01-28 17:15:06.000000000 
+0500
++++ acm-5.0-ico-20100109/src/manifest.h        2012-05-28 01:46:40.456338076 
+0600
+@@ -157,7 +157,7 @@
+  */
+
+ #ifndef ACM_LIBRARY
+-#define ACM_LIBRARY           "/usr/local/games/acm/"
++#define ACM_LIBRARY           "/usr/share/acm-5.0-ico"
+ #endif
+
+ /*
+--- acm-5.0-ico-20100109.orig/acm.tk   2008-08-10 00:02:51.000000000 +0600
++++ acm-5.0-ico-20100109/acm.tk        2012-05-28 01:57:47.119701636 +0600
+@@ -422,8 +422,8 @@
+       set longitude ""
+       set objects ""
+       set plane "C-172"
+-      if { [file exists "src/acm"] } {
+-              set program "src/acm"
++      if { [file exists "/usr/bin/acm-5.0-ico"] } {
++              set program "/usr/bin/acm-5.0-ico -objects 
/usr/share/acm-5.0-ico"
+       } else {
+               set program "?"
+       }
+--- acm-5.0-ico-20100109.orig/configure        2006-01-05 18:58:54.000000000 
+0500
++++ acm-5.0-ico-20100109/configure     2012-05-28 01:44:55.162999969 +0600
+@@ -527,11 +527,7 @@
+
+
+
+-if test -d /usr/lib/games ; then
+-    OBVDIR="/usr/lib/games/acm"
+-else
+-    OBVDIR=\$\(prefix\)/games/acm
+-fi
++OBVDIR="/usr/share/acm-5.0-ico"
+
+
+ rand=0
diff --git a/source/games-extra/acm-5.0-ico/acm-5.0-ico.png 
b/source/games-extra/acm-5.0-ico/acm-5.0-ico.png
new file mode 100644
index 0000000..f585dd1
Binary files /dev/null and b/source/games-extra/acm-5.0-ico/acm-5.0-ico.png 
differ
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to