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

commit a33c7317cf49e3e2f25bbc94a83a5363cc075363
Author: PacMiam <[email protected]>
Date:   Thu Dec 11 19:49:03 2014 +0100

lxde.sh

* Clean and update

diff --git a/source/include/lxde.sh b/source/include/lxde.sh
index f94ed90..fcd0b34 100644
--- a/source/include/lxde.sh
+++ b/source/include/lxde.sh
@@ -2,7 +2,7 @@

###
# = lxde.sh(3)
-# bouleetbil <[email protected]>
+# PacMiam <[email protected]>
#
# == NAME
# lxde.sh - for Frugalware
@@ -15,40 +15,88 @@
# pkgname=menu-cache
# pkgver=0.3.2
# pkgdesc="library creating and utilizing caches to speed up the manipulation 
for freedesktop.org defined application menus"
+# groups=('xlib-extra')
# depends=('glib2')
# makedepends=('intltool')
-# options=('scriptlet')
-# groups=('xlib-extra')
-# archs=('i686' 'x86_64')
+# options+=('scriptlet')
# Finclude lxde
# sha1sums=('1c92ae19326a18ca9ce588704a5d8e746a8ec244')
# --------------------------------------------------
#
# == OPTIONS
-# * _Fuse_gtk3 build package with gtk3 support
-# _Fuse_gtk3="n" for disable gtk3 support
+# * _F_lxde_gtk3 (default to n): build package with gtk3 support
+# * _F_lxde_ext (default to .tar.xz): extension of the source tarball
+# * _F_lxde_dirname (default to lxde): project name on sourceforge
+# * _F_lxde_subdirs (default to none): subdirs project on sourceforge
+# * _F_lxde_github (default to n): use github instead of sourceforge
+# * _F_lxde_group (default to lxde-desktop): change default group
###

-if [ -z "$_Fuse_gtk3" ]; then
-       Fconfopts="${Fconfopts[@]} --enable-gtk3"
+if [ ! -z "$_F_lxde_gtk3" ] ; then
+    Fconfopts="${Fconfopts[@]} --enable-gtk3"
fi

###
# == OVERWRITTEN VARIABLES
# * up2date
# * source()
-# * url
###

-_F_sourceforge_dirname="lxde"
-_F_sourceforge_rss_limit=300
-Finclude sourceforge
-url="http://lxde.org/";
+if [ -z "$url" ] ; then
+    url="http://lxde.org/";
+fi
+
+if [ -z "$archs" ] ; then
+    archs=('i686' 'x86_64')
+fi
+
+if [ -z "$pkgrel" ] ; then
+    pkgrel=1
+fi
+
+# Sourceforge
+if [ -z "$_F_lxde_github" ] ; then
+
+    # Tarball extension
+    if [ -z "$_F_lxde_ext" ] ; then
+        _F_lxde_ext=".tar.xz"
+    fi
+
+    # Project name
+    if [ -z "$_F_lxde_dirname" ] ; then
+        _F_lxde_dirname="lxde"
+    fi
+
+    # Sub-directories
+    if [ ! -z "$_F_lxde_subdirs" ] ; then
+        _F_sourceforge_subdir="$_F_lxde_subdirs"
+    fi
+
+    _F_sourceforge_ext="$_F_lxde_ext"
+    _F_sourceforge_dirname="$_F_lxde_dirname"
+    _F_sourceforge_rss_limit=100
+    Finclude sourceforge
+
+# Github
+else
+
+    # Project name
+    if [ -z "$_F_lxde_githubname" ] ; then
+        _F_lxde_githubname="$pkgname"
+    fi
+
+    _F_github_name="$_F_lxde_githubname"
+    _F_github_author="lxde"
+    _F_github_tag="y"
+    Finclude github
+fi

###
# == APPENDED VARIABLES
# * lxde-desktop to groups()
###
-groups=(${groups[@]} 'lxde-desktop')
-archs=('i686' 'x86_64')
-pkgrel=1
+if [ -z "$_F_lxde_group" ] ; then
+    _F_lxde_group="lxde-desktop"
+fi
+
+groups=(${groups[@]} $_F_lxde_group)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to