wok-next rev 19897

Make midori.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 12 06:46:48 2017 +0300 (2017-10-12)
parents bd4c82b1d1de
children 24582c87ebcc
files midori/receipt midori/stuff/patches/desktops.patch midori/stuff/patches/search.patch midori/stuff/patches/series midori/stuff/search.patch
line diff
     1.1 --- a/midori/receipt	Thu Oct 12 04:21:44 2017 +0300
     1.2 +++ b/midori/receipt	Thu Oct 12 06:46:48 2017 +0300
     1.3 @@ -1,80 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="midori"
     1.8 -VERSION="0.5.2"
     1.9 +VERSION="0.5.11"
    1.10  CATEGORY="network"
    1.11  SHORT_DESC="Lightweight web browser based on GTK+/WebKit"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="LGPL2.1"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 -#TARBALL="${PACKAGE}_${VERSION}_all_.tar.bz2"
    1.16 -WEB_SITE="http://twotoasts.de/index.php/midori/"
    1.17 -#WGET_URL="http://midori-browser.org/downloads/$TARBALL"
    1.18 -WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL"
    1.19 -TAGS="web-browser"
    1.20 -#HOST_ARCH="i486 arm"
    1.21 +WEB_SITE="http://www.midori-browser.org/"
    1.22  
    1.23 -GENERIC_MENUS="no"
    1.24 -DEPENDS="libnotify libunique libsoup libwebkit xorg-libXScrnSaver libxslt"
    1.25 -BUILD_DEPENDS="glib-dev libnotify-dev gtk+-dev xorg-libXScrnSaver-dev \
    1.26 +TARBALL="${PACKAGE}_${VERSION}_all_.tar.bz2"
    1.27 +WGET_URL="http://midori-browser.org/downloads/$TARBALL"
    1.28 +TARBALL_SHA1="64c86935028feb5f89d799c2acacaad67764da6f"
    1.29 +
    1.30 +BUILD_DEPENDS_arm="glib-dev libnotify-dev gtk+-dev xorg-libXScrnSaver-dev \
    1.31  libwebkit-dev libunique-dev libsoup-dev libxslt-dev gettext intltool"
    1.32 +BUILD_DEPENDS="cmake vala sqlite3-dev libsoup-dev shared-mime-info gcr-dev \
    1.33 +webkitgtk-dev gettext rsvg-convert intltool"
    1.34  
    1.35 -# Handle cross compilation
    1.36 -case "$ARCH" in
    1.37 -	i?86) 
    1.38 -		BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra 
    1.39 -		librsvg-apps python vala"
    1.40 -esac
    1.41 -
    1.42 -# Rules to configure and make the package.
    1.43 -compile_rules()
    1.44 -{
    1.45 -	#mkdir -p build && cd build
    1.46 -	#cmake \
    1.47 -		#-DCMAKE_INSTALL_PREFIX=/usr \
    1.48 -		#-DCMAKE_INSTALL_LIBDIR=lib \
    1.49 -		#-DUSE_ZEITGEIST=0 .. &&
    1.50 +compile_rules() {
    1.51  	./configure \
    1.52 -		--jobs=4 \
    1.53  		--prefix=/usr \
    1.54  		--disable-zeitgeist &&
    1.55  	make &&
    1.56 -	make install
    1.57 +	make install || return 1
    1.58 +
    1.59 +	cp $stuff/config $install/etc/xdg/midori
    1.60  }
    1.61  
    1.62 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.63 -genpkg_rules()
    1.64 -{
    1.65 -	mkdir -p \
    1.66 -		$fs/usr/share/doc/midori \
    1.67 -		$fs/usr/share/pixmaps
    1.68 -
    1.69 -	cp -a $install/etc $fs
    1.70 -	cp $stuff/config $fs/etc/xdg/midori
    1.71 -	# add SliTaz token to DDG, add Twitter search
    1.72 -	cd $fs && patch -p1 < $stuff/search.patch && status
    1.73 -
    1.74 -	# Midori use sqlite to store bookmarks
    1.75 -	#cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
    1.76 -
    1.77 -	cp -a $install/usr/bin $fs/usr
    1.78 -	cp -a $install/usr/lib $fs/usr
    1.79 -
    1.80 -	# desktop files
    1.81 -	cp -a $install/usr/share/applications $fs/usr/share
    1.82 -	find $fs -name '*.desktop' -exec sed -i \
    1.83 -		'/^Version/d; /^GenericName/d; /^X-/d; \
    1.84 -		/^Actions=/d' \{\} \;
    1.85 -	desktop=$fs/usr/share/applications/midori.desktop
    1.86 -	lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
    1.87 -		cut -d: -f1) - 2)
    1.88 -	head -n $lastline $desktop > $desktop.new
    1.89 -	mv -f $desktop.new $desktop
    1.90 -
    1.91 -	cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
    1.92 -	cp -a $install/usr/share/midori $fs/usr/share
    1.93 -
    1.94 -	# Icons
    1.95 -	cp -a $install/usr/share/icons $fs/usr/share
    1.96 -	rm -rf $fs/usr/share/icons/hicolor/scalable
    1.97 +genpkg_rules() {
    1.98 +	copy @std
    1.99 +	DEPENDS="atk cairo fontconfig freetype gcr-base gdk-pixbuf glib gtk+ \
   1.100 +	libsoup libsoup-gnome libsqlite3 libxml2 p11-kit pango webkitgtk"
   1.101 +	TAGS="web-browser web webkit"
   1.102  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/midori/stuff/patches/desktops.patch	Thu Oct 12 06:46:48 2017 +0300
     2.3 @@ -0,0 +1,53 @@
     2.4 +--- a/data/midori.desktop.in
     2.5 ++++ b/data/midori.desktop.in
     2.6 +@@ -1,32 +1,10 @@
     2.7 + [Desktop Entry]
     2.8 +-Version=1.0
     2.9 + Type=Application
    2.10 + _Name=Midori
    2.11 +-_GenericName=Web Browser
    2.12 +-_X-GNOME-Fullname=Midori Web Browser
    2.13 + _Comment=Browse the Web
    2.14 +-_X-GNOME-Keywords=Internet;WWW;Explorer
    2.15 +-_X-AppInstall-Keywords=Internet;WWW;Explorer
    2.16 + Categories=GTK;Network;WebBrowser;
    2.17 + MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo;image/svg+xml;
    2.18 + Exec=midori %U
    2.19 + Icon=midori
    2.20 + Terminal=false
    2.21 + StartupNotify=true
    2.22 +-X-GNOME-UsesNotifications=true
    2.23 +-X-Osso-Type=application/x-executable
    2.24 +-X-Osso-Service=midori
    2.25 +-Actions=TabNew;WindowNew;Private;
    2.26 +-
    2.27 +-[Desktop Action TabNew]
    2.28 +-_Name=New Tab
    2.29 +-Exec=midori -e TabNew
    2.30 +-
    2.31 +-[Desktop Action WindowNew]
    2.32 +-_Name=New Window
    2.33 +-Exec=midori -e WindowNew
    2.34 +-
    2.35 +-[Desktop Action Private]
    2.36 +-_Name=New Private Browsing Window
    2.37 +-Exec=midori --private
    2.38 +-
    2.39 +--- a/data/midori-private.desktop.in
    2.40 ++++ b/data/midori-private.desktop.in
    2.41 +@@ -1,15 +1,9 @@
    2.42 + [Desktop Entry]
    2.43 +-Version=1.0
    2.44 + Type=Application
    2.45 + _Name=Midori Private Browsing
    2.46 +-_GenericName=Private Browsing
    2.47 + _Comment=Open a new private browsing window
    2.48 + Categories=GTK;Network;WebBrowser;
    2.49 + Exec=midori --private %U
    2.50 + Icon=midori
    2.51 + Terminal=false
    2.52 + StartupNotify=true
    2.53 +-NotShowIn=Pantheon;
    2.54 +-X-Osso-Type=application/x-executable
    2.55 +-X-Osso-Service=midori
    2.56 +-
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/midori/stuff/patches/search.patch	Thu Oct 12 06:46:48 2017 +0300
     3.3 @@ -0,0 +1,26 @@
     3.4 +--- a/config/search
     3.5 ++++ b/config/search
     3.6 +@@ -1,7 +1,7 @@
     3.7 + [Duck Duck Go]
     3.8 + name=Duck Duck Go
     3.9 + text=Privacy-aware Web Search
    3.10 +-uri=https://duckduckgo.com/?q=%s
    3.11 ++uri=https://duckduckgo.com/?q=%s&t=slitaz
    3.12 + token=dd
    3.13 + 
    3.14 + [Yahoo]
    3.15 +@@ -34,3 +34,14 @@
    3.16 + uri=http://translate.google.com/?q=
    3.17 + token=gt
    3.18 + 
    3.19 ++[Twitter]
    3.20 ++name=Twitter
    3.21 ++text=Twitter Search
    3.22 ++uri=https://twitter.com/#!/search/realtime/%s
    3.23 ++token=tt
    3.24 ++
    3.25 ++[SliTaz]
    3.26 ++name=SliTaz
    3.27 ++text=SliTaz Search
    3.28 ++uri=http://www.google.com/cse?cx=000868395082919927601:nddq7yjdcxg&cof=FORID:0&q=%s
    3.29 ++token=s
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/midori/stuff/patches/series	Thu Oct 12 06:46:48 2017 +0300
     4.3 @@ -0,0 +1,2 @@
     4.4 +search.patch
     4.5 +desktops.patch
     5.1 --- a/midori/stuff/search.patch	Thu Oct 12 04:21:44 2017 +0300
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,26 +0,0 @@
     5.4 ---- fs/etc/xdg/midori/search
     5.5 -+++ fs/etc/xdg/midori/search
     5.6 -@@ -1,7 +1,7 @@
     5.7 - [Duck Duck Go]
     5.8 - name=Duck Duck Go
     5.9 - text=Privacy-aware Web Search
    5.10 --uri=https://duckduckgo.com/?q=%s
    5.11 -+uri=https://duckduckgo.com/?q=%s&t=slitaz
    5.12 - token=dd
    5.13 - 
    5.14 - [Yahoo]
    5.15 -@@ -34,3 +34,14 @@
    5.16 - uri=http://translate.google.com/?q=
    5.17 - token=gt
    5.18 - 
    5.19 -+[Twitter]
    5.20 -+name=Twitter
    5.21 -+text=Twitter Search
    5.22 -+uri=https://twitter.com/#!/search/realtime/%s
    5.23 -+token=tt
    5.24 -+
    5.25 -+[SliTaz]
    5.26 -+name=SliTaz
    5.27 -+text=SliTaz Search
    5.28 -+uri=http://www.google.com/cse?cx=000868395082919927601:nddq7yjdcxg&cof=FORID:0&q=%s
    5.29 -+token=s