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

commit bb95f9aa8d181d691e7de4a4891c045599601a4f
Author: Lukc <l...@upyum.com>
Date:   Sat Jan 8 14:32:15 2011 +0100

Finclude github (new Finclude)

[ mv: fixed 4 whitespace issues ]

diff --git a/source/include/github.sh b/source/include/github.sh
new file mode 100644
index 0000000..17c702a
--- /dev/null
+++ b/source/include/github.sh
@@ -0,0 +1,64 @@
+
+###
+# = github.sh(3)
+# Luka Vandervelden <l...@upyum.com>
+#
+# == NAME
+# github.sh - for Frugalware
+#
+# == SYNOPSIS
+# Common schema for packages hosted at Github, using git or tarballs
+# depending on $USE_DEVEL.
+#
+# == EXAMPLE
+# --------------------------------------------------
+# pkgname=luafilesystem
+# pkgver=1.5.0
+# pkgrel=1
+# pkgdesc="A library which extends the file-system capabilities of LUA."
+# url="http://www.keplerproject.org/luafilesystem/";
+# depends=('lua')
+# groups=('lib-extra')
+# archs=('i686' 'x86_64')
+# sha1sums=('1ee2ca3b5dbc3cf7c21c7168a0873b2983b7e241')
+# _F_github_author=keplerproject
+# Finclude github
+# --------------------------------------------------
+#
+# == OPTIONS
+# * _F_github_name: name of the project on Github.
+# * _F_github_ver: name of the tag of the wanted version on Github.
+# * _F_github_author: owner of the repository and of the project on which
+#   to get the software.
+#
+# == OVERWRITTEN VARIABLES
+# * up2date
+#
+###
+
+if [ -z "$_F_github_name" ]; then
+       _F_github_name=$pkgname
+fi
+
+if [ -z "$_F_github_ver" ]; then
+       _F_github_ver=$pkgver
+fi
+
+if [ -z "$_F_github_author" ]; then
+       _F_github_author=$_F_github_name
+fi
+
+if [ -z "$url" ]; then
+       url=http://github.com/$_F_github_author/$_F_github_name
+fi
+
+if [ "$_F_github_devel" = "yes" ]; then
+       # Not checked, but may work.
+       _F_scm_type=git
+       _F_scm_url=git://github.com/$_F_github_author/$_F_github_name
+       Finclude scm
+else
+       up2date="Flasttar 
http://github.com/$_F_github_author/$_F_github_name/downloads";
+       # On one line for Mr Portability, Hermier Portability.
+       source=(${sour...@]} 
http://github.com/downloads/$_F_github_author/$_F_github_name/$_F_github_name-$_F_github_ver.tar.gz)
+fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to