wok-next diff midori/receipt @ rev 19897
Make midori.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 12 06:46:48 2017 +0300 (2017-10-12) |
parents | bd61370c8ddc |
children | 064e844c047a |
line diff
1.1 --- a/midori/receipt Sat Jul 15 15:20:02 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 }