wok view midori/receipt @ rev 16876
Up atk atk-dev (2.12.0)
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sun Jul 13 13:56:20 2014 -0300 (2014-07-13) |
parents | 62fd9cdd3423 |
children | 5d53e8ccbc8d |
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 #HOST_ARCH="i486 arm"
16 GENERIC_MENUS="no"
17 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss libxslt"
18 BUILD_DEPENDS="glib-dev libnotify-dev gtk+-dev xorg-libXss-dev \
19 libwebkit-dev libunique-dev libsoup-dev libxslt-dev"
21 # Handle cross compilation
22 case "$ARCH" in
23 i?86)
24 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra
25 librsvg-apps python vala"
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 #mkdir -p build && cd build
32 #cmake \
33 #-DCMAKE_INSTALL_PREFIX=/usr \
34 #-DCMAKE_INSTALL_LIBDIR=lib \
35 #-DUSE_ZEITGEIST=0 .. &&
36 ./configure \
37 --jobs=4 \
38 --prefix=/usr \
39 --disable-zeitgeist &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p \
48 $fs/usr/share/doc/midori \
49 $fs/usr/share/pixmaps
51 cp -a $install/etc $fs
52 cp $stuff/config $fs/etc/xdg/midori
53 # add SliTaz token to DDG, add Twitter search
54 cd $fs && patch -p1 < $stuff/search.patch && status
56 # Midori use sqlite to store bookmarks
57 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/lib $fs/usr
62 # desktop files
63 cp -a $install/usr/share/applications $fs/usr/share
64 find $fs -name '*.desktop' -exec sed -i \
65 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \
66 /^Actions=/d' \{\} \;
67 desktop=$fs/usr/share/applications/midori.desktop
68 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
69 cut -d: -f1) - 2)
70 head -n $lastline $desktop > $desktop.new
71 mv -f $desktop.new $desktop
73 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
74 cp -a $install/usr/share/midori $fs/usr/share
76 # Icons
77 cp -a $install/usr/share/icons $fs/usr/share
78 rm -rf $fs/usr/share/icons/hicolor/scalable
79 }