Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kdetesting2.git;a=commitdiff;h=4ca5583661ebcf2e2b8e557b2426d1e9c97493bf

commit 4ca5583661ebcf2e2b8e557b2426d1e9c97493bf
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Jan 2 15:51:13 2011 +0100

frugalware-tweak-0.2.3-1-i686
*can build from git source
*added some USE
*(can't be build from git as pacman-g2 is not updated with new vala binding)

diff --git a/source/xapps-extra/frugalware-tweak/FrugalBuild 
b/source/xapps-extra/frugalware-tweak/FrugalBuild
index 54d3d9e..ff795ef 100644
--- a/source/xapps-extra/frugalware-tweak/FrugalBuild
+++ b/source/xapps-extra/frugalware-tweak/FrugalBuild
@@ -1,6 +1,10 @@
# Compiling Time: 0.02 SBU
# Maintainer: bouleetbil <bouleet...@frogdev.info>

+USE_DEVEL=${USE_DEVEL:-"n"}
+USE_FW2INDICATE=${USE_FW2INDICATE:-"n"}
+USE_FW2DEBUG=${USE_FW2DEBUG:-"n"}
+
pkgname=frugalware-tweak
pkgver=0.2.3
pkgrel=1
@@ -23,19 +27,94 @@ replaces=('frugal-mono-tools')
provides=('frugal-mono-tools')
conflicts=('frugal-mono-tools')

+if Fuse $USE_DEVEL; then
+       unset source
+       unset sha1sums
+       Finclude scm gnome-scriptlet
+       _F_gnome_glib="y"
+       _F_gnome_desktop="y"
+       makedepends=("${makedepends[@]}" git vala)
+       _F_scm_type="git"
+       
_F_scm_url="git://git.frugalware.org/pub/other/people/bouleetbil/frugal-tweak"
+       depends=("${depends[@]}" 'libindicate-mono')
+       rodepends=("${rodepends[@]}" 'frugalware-tweak-daemon')
+
+       subpkgs=("${subpkgs[@]}" 'frugalware-tweak-daemon')
+       subdescs=("${subdescs[@]}" 'Daemon update pacman-g2 database')
+       subrodepends=("${subrodepends[@]}" "")
+       subdepends=("${subdepends[@]}" "pacman-g2")
+       subgroups=("${subgroups[@]}" 'apps-extra')
+       subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
+       subinstall=("")
+
+       subpkgs=("${subpkgs[@]}" 'frugalware-tweak2')
+       subdescs=("${subdescs[@]}" 'Frugalware configuration utility')
+       subrodepends=("${subrodepends[@]}" "")
+       if Fuse $USE_FW2INDICATE; then
+               subdepends=("${subdepends[@]}" "pacman-g2 vte webkit unique 
pygtk libindicate libnotify")
+       else
+               subdepends=("${subdepends[@]}" "pacman-g2 vte webkit unique 
pygtk libnotify")
+       fi
+       subgroups=("${subgroups[@]}" 'xapps-extra')
+       subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
+       subinstall=("${subinstall[@]}"  "$_F_gnome_scriptlet")
+fi
+
build() {
-       Fcd
+       if Fuse $USE_DEVEL; then
+               Funpack_scm
+               Fcd $pkgname
+               #pygtk modules
+               cd frugal-tweak-python/fw-interfaces/ || Fdie
+               Fmake
+               Fmakeinstall
+               cd ../fw-login-manager/ || Fdie
+               Fmake
+               Fmakeinstall
+
+               #valac modules
+               cd ../../frugal-tweak-vala/ || Fdie
+               if ! Fuse $USE_FW2DEBUG; then
+                       Fmessage "Disable debug support"
+                       Fsed "ENABLEDEBUG = 1" "ENABLEDEBUG = 0" Makefile
+               fi
+               if Fuse $USE_FW2INDICATE; then
+                       Fmessage "Enable libindicate support"
+                       Fsed "ENABLEINDICATE = 0" "ENABLEINDICATE = 1" Makefile
+               else
+                       Fmessage "Disable libindicate support"
+                       Fsed "ENABLEINDICATE = 1" "ENABLEINDICATE = 0" Makefile
+               fi
+               Fmake
+               Fmakeinstall
+               #split daemon
+               Fsplit frugalware-tweak-daemon etc/rc.d/rc.frugalware-tweak
+               Fsplit frugalware-tweak-daemon usr/bin/frugalware-tweak-daemon
+               #frugalware tweak2 split
+               Fsplit frugalware-tweak2 usr
+               Fsplit frugalware-tweak2 etc
+
+               #mono tools
+               cd ../ || Fdie
+               sh ./autogen.sh  || Fdie
+       else
+               Fcd
+       fi
Fmonoexport
Fmkdir usr/share/pixmaps
Fmkdir etc/xdg/autostart/
Fmkdir usr/share/applications/
Fbuild
+       cppatch=$pkgname-$pkgver
+       if Fuse $USE_DEVEL; then
+               cppatch=$pkgname
+       fi
#For start it with Xsession
-       Fcp $pkgname-$pkgver/frugal-mono-tools/Data/frugal-tweak.desktop \
+       Fcp $cppatch/frugal-mono-tools/Data/frugal-tweak.desktop \
etc/xdg/autostart/frugal-tweak.desktop
-       Fcp $pkgname-$pkgver/frugal-mono-tools/Pictures/fw.png 
usr/share/pixmaps/FrugalTools.png
+       Fcp $cppatch/frugal-mono-tools/Pictures/fw.png 
usr/share/pixmaps/FrugalTools.png
#python terminal
-       Fcp frugal-py-tweak/PyUtils/PyVTE.py /usr/bin/PyFrugalVTE
+       Fcp $cppatch/frugal-tweak-python/PyVTE.py /usr/bin/PyFrugalVTE
#irc python client for join #frugalware
#Fcp frugal-py-tweak/PyUtils/irc.py /usr/bin/PyFrugalIRC

@@ -46,6 +125,7 @@ build() {
_F_desktop_icon="FrugalTools.png"
_F_desktop_categories="Application;GTK;System;"
Fdesktop2
+       Fbuild_gnome_scriptlet

Fmkdir usr/share/apps/sucontrolcenter
Fmkdir etc/pam.d
@@ -85,5 +165,7 @@ EOF
Fln /usr/bin/consolehelper /usr/bin/sucontrolcenter

Fmonocleanup
-       Frcd2
+       if ! Fuse $USE_DEVEL; then
+               Frcd2
+       fi
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to