wok rev 2042

Up: midori (0.1.2)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 16 15:19:43 2009 +0100 (2009-01-16)
parents e4397946d598
children 45b751869a6d
files midori/receipt midori/stuff/midori.desktop
line diff
     1.1 --- a/midori/receipt	Fri Jan 16 15:18:55 2009 +0100
     1.2 +++ b/midori/receipt	Fri Jan 16 15:19:43 2009 +0100
     1.3 @@ -1,32 +1,44 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="midori"
     1.7 -VERSION="0.0.18"
     1.8 +VERSION="0.1.2"
     1.9  CATEGORY="x-window"
    1.10  SHORT_DESC="Light Web Browse using GTK+/WebKit."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 -DEPENDS="libsexy webkit-r icu curl openssl libldap cyrus-sasl"
    1.14 -BUILD_DEPENDS="libsexy-dev libsexy webkit-r-dev webkit-r icu-dev icu curl-dev"
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 +DEPENDS="libsexy webkit-r icu curl openssl sqlite"
    1.17 +BUILD_DEPENDS="python libsexy-dev libsexy webkit-r-dev webkit-r icu-dev icu curl-dev sqlite-dev"
    1.18  WEB_SITE="http://software.twotoasts.de/?page=midori"
    1.19 -WGET_URL="http://software.twotoasts.de/media/midori/$TARBALL"
    1.20 +WGET_URL="http://goodies.xfce.org/releases/midori/$TARBALL"
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25  	cd $src
    1.26 -	chmod +x install-sh
    1.27 -	./configure \
    1.28 -		--prefix=/usr \
    1.29 -		--mandir=/usr/share/man \
    1.30 -		$CONFIGURE_ARGS &&
    1.31 -	make &&
    1.32 -	make DESTDIR=$PWD/_pkg install
    1.33 +	./waf configure --prefix=/usr
    1.34 +	./waf build
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {
    1.40 -	mkdir -p $fs/usr
    1.41 -	cp -a $_pkg/usr/bin $fs/usr
    1.42 +	mkdir -p \
    1.43 +		$fs/usr/bin \
    1.44 +		$fs/usr/lib/midori \
    1.45 +		$fs/usr/share/pixmaps \
    1.46 +		$fs/usr/share/applications \
    1.47 +		$fs/usr/share/icons/hicolor/22x22/categories \
    1.48 +		$fs/usr/share/icons/hicolor/22x22/status
    1.49 +	cp -a $src/_build_/default/midori/midori $fs/usr/bin
    1.50 +	cp -a $src/_build_/default/extensions/*.so $fs/usr/lib/midori
    1.51 +	
    1.52 +	for i in de es fr
    1.53 +	do
    1.54 +		mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
    1.55 +		cp -a $src/_build_/default/po/$i.mo \
    1.56 +			$fs/usr/share/locale/$i/LC_MESSAGES/midori.mo
    1.57 +	done
    1.58 +	cp $src/icons/22x22/midori.png $fs/usr/share/pixmaps
    1.59 +	cp $src/icons/22x22/extension.png $fs/usr/share/icons/hicolor/22x22/categories
    1.60 +	cp $src/icons/22x22/news-feed.png $fs/usr/share/icons/hicolor/22x22/status
    1.61  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/midori/stuff/midori.desktop	Fri Jan 16 15:19:43 2009 +0100
     2.3 @@ -0,0 +1,13 @@
     2.4 +[Desktop Entry]
     2.5 +Version=1.0
     2.6 +Type=Application
     2.7 +Name=Midori Web Browser
     2.8 +Name[de]=Netznavigator Midori
     2.9 +Name[fr]=Navigateur Web Midori
    2.10 +Name[pt_PT]=Navegador Web Midori
    2.11 +Categories=GTK;Network;
    2.12 +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
    2.13 +Exec=midori %u
    2.14 +Icon=midori.png
    2.15 +Terminal=false
    2.16 +StartupNotify=true