Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=mate14.git;a=commitdiff;h=01b7c44765c6fffed2317c40953e4d58e31b2d7f

commit 01b7c44765c6fffed2317c40953e4d58e31b2d7f
Author: Pingax <[email protected]>
Date:   Wed Jan 30 10:32:20 2013 +0100

* Add mate.sh include

diff --git a/source/include/mate.sh b/source/include/mate.sh
new file mode 100644
index 0000000..c92d7a3
--- /dev/null
+++ b/source/include/mate.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+###
+# = mate.sh(3)
+# Anthony Jorion <[email protected]>
+#
+# == Name
+# mate.sh - for Frugalware
+#
+# == SYNOPSIS
+# Common schema for MATE packages.
+#
+# == EXAMPLE
+# --------------------------------------------------
+# TODO
+# --------------------------------------------------
+#
+# == OPTIONS
+# * _F_mate_ver specifies the branch of MATE to use.
+# * _F_mate_ext (default to .tar.xz) extension of
+# the source tarball
+###
+
+if [ -z $_F_mate_ver ] ; then
+    _F_mate_ver="1.5"
+fi
+
+if [ -z $_F_mate_ext ] ; then
+    _F_mate_ext=".tar.xz"
+fi
+
+_F_mate_getver()
+{
+    local tmpver count
+
+    tmpver=`echo $pkgver | tr -d '[0-9][a-z]'`
+    count=`expr length "$tmpver"`
+
+    case $count in
+        1)
+        tmpver="$pkgver"
+        ;;
+        2)
+        tmpver="${pkgver%.*}"
+        ;;
+        3)
+        tmpver="${pkgver%.*.*}"
+        ;;
+    esac
+    echo $tmpver
+}
+
+###
+# == OVERWRITTEN VARIABLES
+# * url
+# * up2date
+# * source()
+###
+
+up2date="Flasttar http://pub.mate-desktop.org/releases/$_F_mate_ver/";
+
+source="http://pub.mate-desktop.org/releases/$_F_mate_ver/${_F_mate_name}-$pkgver${_F_mate_ext}";
+
+url="http://mate-desktop.org";
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to