wok view midori/receipt @ rev 16231
Up fpc (2.6.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 01 09:10:23 2014 +0000 (2014-04-01) |
parents | 76b72f1ad63c |
children | e1ee172acb7b |
line source
1 # SliTaz package receipt.
3 PACKAGE="midori"
4 VERSION="0.5.2"
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 #TARBALL="${PACKAGE}_${VERSION}_all_.tar.bz2"
11 WEB_SITE="http://twotoasts.de/index.php/midori/"
12 #WGET_URL="http://midori-browser.org/downloads/$TARBALL"
13 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL"
14 GENERIC_MENUS="no"
16 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss"
17 BUILD_DEPENDS="python vala glib-dev librsvg-apps libnotify-dev gtk+-dev \
18 xorg-libXss-dev libwebkit-dev libunique-dev desktop-file-utils-extra \
19 libsoup-dev cmake"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 #mkdir -p build && cd build
25 #cmake \
26 #-DCMAKE_INSTALL_PREFIX=/usr \
27 #-DCMAKE_INSTALL_LIBDIR=lib \
28 #-DUSE_ZEITGEIST=0 .. &&
29 ./configure \
30 --jobs=4 \
31 --prefix=/usr \
32 --disable-zeitgeist &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p \
41 $fs/usr/share/doc/midori \
42 $fs/usr/share/pixmaps
44 cp -a $install/etc $fs
45 cp $stuff/config $fs/etc/xdg/midori
46 # add SliTaz token to DDG, add Twitter search
47 cd $fs && patch -p1 < $stuff/search.patch && status
49 # Midori use sqlite to store bookmarks
50 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib $fs/usr
55 # desktop files
56 cp -a $install/usr/share/applications $fs/usr/share
57 find $fs -name '*.desktop' -exec sed -i \
58 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \
59 /^Actions=/d' \{\} \;
60 desktop=$fs/usr/share/applications/midori.desktop
61 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
62 cut -d: -f1) - 2)
63 head -n $lastline $desktop > $desktop.new
64 mv -f $desktop.new $desktop
66 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
67 cp -a $install/usr/share/midori $fs/usr/share
69 # Icons
70 cp -a $install/usr/share/icons $fs/usr/share
71 rm -rf $fs/usr/share/icons/hicolor/scalable
72 }