[Frugalware-darcs] frugalware-current: galeon-2.0.1-1-i686

alex_extreme alex.extreme2 at gmail.com
Sat Mar 18 17:47:10 CET 2006


[galeon-2.0.1-1-i686
alex_extreme <alex.extreme2 at gmail.com>**20060318161031] {
adddir ./extra/source/gnome/galeon
addfile ./extra/source/gnome/galeon/FrugalBuild
hunk ./extra/source/gnome/galeon/FrugalBuild 1
+# Last Modified: Sat, 18 Mar 2006 16:01:39 +0000
+# Compiling Time: 1.11 SBU
+# Maintainer: Priyank <priyankmg at gmail.com>
+
+pkgname=galeon
+pkgver=2.0.1
+pkgrel=1
+install=galeon.install
+pkgdesc="A GNOME web browser based on the gecko rendering engine"
+depends=('firefox>=1.5' 'gnome-desktop')
+makedepends=('intltool')
+url="http://galeon.sourceforge.net/"
+archs=('i686')
+groups=('gnome')
+source=(http://dl.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+up2date="lynx -dump http://sourceforge.net/project/showfiles.php?group_id=6999|grep  -m1 'galeon 2.x'|sed 's/.*Galeon \(.*\) .*/\1/'|sed 's| .*||g'"
+sha1sums=('d27a9a3f34f54646c2fe2222038e103c5c1baecd')
+
+build() {	
+	Fcd
+	find . -name Makefile.in -exec sed -i -e 's/-scrollkeeper-update.*//' {} \;
+	if [ -f omf.make ]; then
+		sed -i -e 's/-scrollkeeper-update.*//' omf.make
+	fi
+	Fmake --without-debug --enable-nautilus-view=no --disable-werror --with-mozilla=firefox
+	Fmakeinstall GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+}
+
+# optimalization OK
+
addfile ./extra/source/gnome/galeon/galeon.install
hunk ./extra/source/gnome/galeon/galeon.install 1
+pkgname=galeon
+
+post_install() {
+	schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
+	scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*\.omf$' | awk '{ print $2 }'`)
+	
+	export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+	for schema in "${schemas[@]}" ; do
+		usr/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
+	done
+	
+	for scroll in "${scrolls[@]}" ; do
+		scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
+	done
+	
+	kill -s HUP `pidof /usr/libexec/gconfd-2` > /dev/null 2>&1
+	update-desktop-database -q
+}
+
+pre_upgrade() {
+	pre_remove $1
+}
+
+post_upgrade() {
+	post_install $1
+}
+
+pre_remove() {
+	schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
+	scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*\.omf$' | awk '{ print $2 }'`)
+	
+	export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+	for schema in "${schemas[@]}" ; do
+		usr/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
+	done
+	
+	for scroll in "${scrolls[@]}" ; do
+		scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
+	done
+	
+	kill -s HUP `pidof usr/libexec/gconfd-2` >/dev/null 2>&1
+}
+
+post_remove() {
+	update-desktop-database -q
+}
+
+op=$1
+shift
+
+$op $*
}


More information about the Frugalware-darcs mailing list