Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=mate.git;a=commitdiff;h=7c259651a529361624225b424feb42d69cb0dc32

commit 7c259651a529361624225b424feb42d69cb0dc32
Author: Anthony Jorion <[email protected]>
Date:   Sun Jul 28 15:00:03 2013 +0200

source/include/mate.sh

* Update mate's version

diff --git a/source/include/mate.sh b/source/include/mate.sh
new file mode 100644
index 0000000..71d4ecd
--- /dev/null
+++ b/source/include/mate.sh
@@ -0,0 +1,68 @@
+#!/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_name ] ; then
+       _F_mate_name=$pkgname
+fi
+
+if [ -z $_F_mate_ver ] ; then
+    _F_mate_ver="1.6"
+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