wok view midori/receipt @ rev 14379

Move from undigest: faenza-icon-theme-emblems fbpdf ffmpegthumbnailer-dev ffmpegthumbnailer foobillardplus-music foobillardplus gnucash hg-git moserial ptxdist re-alpine sbackup slib tumbler-dev tumbler vfu
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 22 21:54:08 2013 +0200 (2013-04-22)
parents 0ce92f0f1b66
children cb9ac999a97d
line source
1 # SliTaz package receipt.
3 PACKAGE="midori"
4 VERSION="0.4.9"
5 CATEGORY="x-window"
6 SHORT_DESC="Lightweight web browser based on GTK+/WebKit"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://twotoasts.de/index.php/midori/"
10 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL"
11 GENERIC_MENUS="no"
13 DEPENDS="libnotify libunique libwebkit xorg-libXss"
14 BUILD_DEPENDS="python vala glib-dev librsvg-apps libnotify-dev gtk+-dev \
15 xorg-libXss-dev libwebkit-dev libunique-dev desktop-file-utils-extra"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --jobs=4 \
22 --prefix=/usr \
23 --disable-zeitgeist &&
24 make &&
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p \
32 $fs/usr/share/doc/midori \
33 $fs/usr/share/pixmaps \
35 cp -a $install/etc $fs
36 cp $stuff/config $fs/etc/xdg/midori
37 # add SliTaz token to DDG, add Twitter search
38 cd $fs && patch -p1 < $stuff/search.patch && status
40 # Midori use sqlite to store bookmarks
41 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
46 # desktop files
47 cp -a $install/usr/share/applications $fs/usr/share
48 find $fs -name '*.desktop' -exec sed -i \
49 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \
50 /^Actions=/d' \{\} \;
51 desktop=$fs/usr/share/applications/midori.desktop
52 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
53 cut -d: -f1) - 2)
54 head -n $lastline $desktop > $desktop.new
55 mv -f $desktop.new $desktop
57 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
58 cp -a $install/usr/share/midori $fs/usr/share
60 # Icons
61 cp -a $install/usr/share/icons $fs/usr/share
62 rm -rf $fs/usr/share/icons/hicolor/scalable
63 }