wok-6.x view midori/receipt @ rev 15950

compiz-core: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 23 12:25:52 2014 +0000 (2014-02-23)
parents cb9ac999a97d
children 62fd9cdd3423
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 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://twotoasts.de/index.php/midori/"
11 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL"
12 GENERIC_MENUS="no"
14 DEPENDS="libnotify libunique libwebkit xorg-libXss"
15 BUILD_DEPENDS="python vala glib-dev librsvg-apps libnotify-dev gtk+-dev \
16 xorg-libXss-dev libwebkit-dev libunique-dev desktop-file-utils-extra"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --jobs=4 \
23 --prefix=/usr \
24 --disable-zeitgeist &&
25 make &&
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p \
33 $fs/usr/share/doc/midori \
34 $fs/usr/share/pixmaps \
36 cp -a $install/etc $fs
37 cp $stuff/config $fs/etc/xdg/midori
38 # add SliTaz token to DDG, add Twitter search
39 cd $fs && patch -p1 < $stuff/search.patch && status
41 # Midori use sqlite to store bookmarks
42 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
47 # desktop files
48 cp -a $install/usr/share/applications $fs/usr/share
49 find $fs -name '*.desktop' -exec sed -i \
50 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \
51 /^Actions=/d' \{\} \;
52 desktop=$fs/usr/share/applications/midori.desktop
53 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
54 cut -d: -f1) - 2)
55 head -n $lastline $desktop > $desktop.new
56 mv -f $desktop.new $desktop
58 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
59 cp -a $install/usr/share/midori $fs/usr/share
61 # Icons
62 cp -a $install/usr/share/icons $fs/usr/share
63 rm -rf $fs/usr/share/icons/hicolor/scalable
64 }