Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=moblin.git;a=commitdiff;h=0a86e074c380cbead20c7a527e41053a7d750ca4

commit 0a86e074c380cbead20c7a527e41053a7d750ca4
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Dec 15 14:07:34 2009 +0000

*moblin.sh
*for moblin projects

diff --git a/source/include/moblin.sh b/source/include/moblin.sh
new file mode 100644
index 0000000..ac66262
--- /dev/null
+++ b/source/include/moblin.sh
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+###
+# = moblin.sh(3)
+# bouleetbil <bouleet...@frogdev.info>
+#
+# == NAME
+# moblin.sh - for Frugalware
+#
+# == SYNOPSIS
+# Common schema for moblin packages.
+#
+# == EXAMPLE
+# --------------------------------------------------
+# pkgname=bickley
+# pkgver=0.4.4
+# pkgrel=1
+# pkgdesc="Bickley is a metadata management API and framework"
+# groups=('gnome-extra')
+# depends=("gconf" "gstreamer" "gupnp-av" "vala")
+# Finclude moblin
+# sha1sums=('06ec832069455c2b100dad48df8c459cb8f5ba9c')
+# --------------------------------------------------
+#
+# == OPTIONS
+# * _F_moblin_name (defaults to $pkgname): if you want to use a custom package
+# name (for example the upstream name contains uppercase letters) then use this
+# to declare the real name
+# * _F_moblin_devel: if set, use git version
+# * _F_moblin_ext (defaults to .tar.gz): extension of the source tarball
+# * _F_moblin_sep ( defaults to - ): used for source() only right now. As 
example
+# for an "baz_1.2.3.tar.gz" tarball you should use _F_moblin_sep="_" , for 
empty
+# values use _F_moblin_sep="None" that way you can dowload such foo1234.tgz
+###
+
+if [ -z "$_F_moblin_name" ]; then
+       _F_moblin_name=$pkgname
+fi
+
+if [ -z "$_F_moblin_devel" ]; then
+       _F_moblin_devel="n"
+fi
+
+if [ -z "$_F_moblin_dirname" ]; then
+       _F_moblin_dirname="$_F_moblin_name"
+fi
+
+if [ -z "$_F_moblin_ext" ]; then
+       _F_moblin_ext=".tar.gz"
+fi
+
+if [ -z "$_F_moblin_sep" ]; then
+       _F_moblin_sep="-"
+fi
+
+if [ -n "$_F_moblin_sep" ] && [ "$_F_moblin_sep" = "None" ]; then
+        _F_moblin_sep=""
+fi
+###
+# == OVERWRITTEN VARIABLES
+# * up2date
+# * source()
+# * url
+# * group
+# * archs()
+###
+
+archs=('i686')
+groups=(${grou...@]} 'moblin-extra')
+
+if [ "$_F_moblin_devel" != "n" ]; then
+       #git version
+       _F_scm_type="git"
+       _F_scm_url="git://git.moblin.org/$_F_moblin_dirname"
+       Finclude scm
+else
+       up2date="Flastarchive 
http://git.moblin.org/cgit.cgi/$_F_moblin_dirname/ $_F_moblin_ext"
+       
source=(http://git.moblin.org/cgit.cgi/$_F_moblin_dirname/snapshot/$_F_moblin_name$_F_moblin_sep$pkgver$_F_moblin_ext)
+fi
+
+url="http://www.moblin.org/";
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to