wok-next view midori/receipt @ rev 14777

nginx: add www user,/var/spool/nginx
author Richard Dunbar <mojo@slitaz.org>
date Tue Jul 02 14:55:31 2013 +0000 (2013-07-02)
parents 68d68791ced5
children 76b72f1ad63c
line source
1 # SliTaz package receipt.
3 PACKAGE="midori"
4 VERSION="0.5.0"
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 }