wok-current rev 5028

midori: add custom config and bookmarks
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 02 22:48:14 2010 +0100 (2010-03-02)
parents 9f9acbd86f07
children 116602ef2d27
files midori/receipt midori/stuff/bookmarks.xbel midori/stuff/config midori/stuff/midori-websettings.patch midori/stuff/midori.desktop
line diff
     1.1 --- a/midori/receipt	Tue Mar 02 16:02:00 2010 +0000
     1.2 +++ b/midori/receipt	Tue Mar 02 22:48:14 2010 +0100
     1.3 @@ -15,29 +15,28 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -    #patch -p 0 < ../stuff/midori-websettings.patch || exit 1
     1.8 -	#./waf configure --prefix=/usr
     1.9 -	#./waf build
    1.10 -	./configure --prefix=/usr \
    1.11 -				--enable-sqlite \
    1.12 -				--enable-addons \
    1.13 -				--enable-nls \
    1.14 -				--disable-hildon &&
    1.15 +	./configure \
    1.16 +		--prefix=/usr \
    1.17 +		--enable-sqlite \
    1.18 +		--enable-addons \
    1.19 +		--disable-hildon &&
    1.20  	make &&
    1.21 -	make DESTDIR=$PWD/_pkg install
    1.22 -				
    1.23 +	make DESTDIR=$PWD/_pkg install		
    1.24  }
    1.25  
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 -	mkdir -p $fs/usr/share/pixmaps \
    1.30 -			 $fs/usr/share/icons
    1.31 +	mkdir -p \
    1.32 +		$fs/usr/share/pixmaps \
    1.33 +		$fs/usr/share/icons
    1.34  	cp -a $_pkg/etc $fs
    1.35 +	cp stuff/config $fs/etc/xdg/midori
    1.36 +	cp stuff/bookmarks.xbel $fs/etc/xdg/midori
    1.37  	cp -a $_pkg/usr/bin $fs/usr
    1.38  	cp -a $_pkg/usr/lib $fs/usr
    1.39  	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
    1.40  	cp -a $_pkg/usr/share/icons/hicolor $fs/usr/share/icons
    1.41 -	cp $_pkg/usr/share/icons/hicolor/22x22/apps/midori.png $fs/usr/share/pixmaps	
    1.42 -
    1.43 +	cd $fs/usr/share/pixmaps
    1.44 +	ln -s ../icons/hicolor/22x22/apps/midori.png  .
    1.45  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/midori/stuff/bookmarks.xbel	Tue Mar 02 22:48:14 2010 +0100
     2.3 @@ -0,0 +1,32 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">
     2.6 +<xbel version="1.0" xmlns:midori="http://www.twotoasts.de">
     2.7 +<bookmark href="http://www.slitaz.org/">
     2.8 +<title>‪SliTaz GNU/Linux</title>
     2.9 +<desc></desc>
    2.10 +<info>
    2.11 +<metadata owner="http://www.twotoasts.de"/>
    2.12 +</info>
    2.13 +</bookmark>
    2.14 +<bookmark href="http://pkgs.slitaz.org/">
    2.15 +<title>‪SliTaz Packages</title>
    2.16 +<desc></desc>
    2.17 +<info>
    2.18 +<metadata owner="http://www.twotoasts.de"/>
    2.19 +</info>
    2.20 +</bookmark>
    2.21 +<bookmark href="http://twitter.com/slitaz">
    2.22 +<title>‪SliTaz on Twitter</title>
    2.23 +<desc></desc>
    2.24 +<info>
    2.25 +<metadata owner="http://www.twotoasts.de"/>
    2.26 +</info>
    2.27 +</bookmark>
    2.28 +<bookmark href="http://distrowatch.com/table.php?distribution=slitaz">
    2.29 +<title>SliTaz on ‪DistroWatch</title>
    2.30 +<desc></desc>
    2.31 +<info>
    2.32 +<metadata owner="http://www.twotoasts.de"/>
    2.33 +</info>
    2.34 +</bookmark>
    2.35 +</xbel>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/midori/stuff/config	Tue Mar 02 22:48:14 2010 +0100
     3.3 @@ -0,0 +1,7 @@
     3.4 +
     3.5 +[settings]
     3.6 +last-window-width=860
     3.7 +last-window-height=580
     3.8 +toolbar-style=MIDORI_TOOLBAR_SMALL_ICONS
     3.9 +toolbar-items=Back,Forward,ReloadStop,Homepage,TabNew,Location
    3.10 +homepage=file:///usr/share/webhome/index.html
     4.1 --- a/midori/stuff/midori-websettings.patch	Tue Mar 02 16:02:00 2010 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,17 +0,0 @@
     4.4 ---- midori/midori-websettings.c	Tue Dec 15 22:34:29 2009
     4.5 -+++ midori/midori-websettings.c	Sun Jan  3 17:20:25 2010
     4.6 -@@ -596,13 +596,12 @@
     4.7 -                                      MIDORI_STARTUP_LAST_OPEN_PAGES,
     4.8 -                                      flags));
     4.9 - 
    4.10 --    g_object_class_install_property (gobject_class,
    4.11 -                                      PROP_HOMEPAGE,
    4.12 -                                      g_param_spec_string (
    4.13 -                                      "homepage",
    4.14 -                                      _("Homepage:"),
    4.15 -                                      _("The homepage"),
    4.16 --                                     "http://www.google.com",
    4.17 -+                                     "file:///usr/share/webhome/index.html",
    4.18 -                                      flags));
    4.19 - 
    4.20 -     /**
     5.1 --- a/midori/stuff/midori.desktop	Tue Mar 02 16:02:00 2010 +0000
     5.2 +++ b/midori/stuff/midori.desktop	Tue Mar 02 22:48:14 2010 +0100
     5.3 @@ -8,6 +8,6 @@
     5.4  Categories=GTK;Network;
     5.5  MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
     5.6  Exec=midori %u
     5.7 -Icon=midori.png
     5.8 +Icon=midori
     5.9  Terminal=false
    5.10  StartupNotify=true