wok view midori/receipt @ rev 19559
Up libfm*, pcmanfm (1.2.5)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Dec 14 13:56:37 2016 +0100 (2016-12-14) |
parents | 5d53e8ccbc8d |
children | 07eb3c946dea |
line source
1 # SliTaz package receipt.
3 PACKAGE="midori"
4 VERSION="0.5.2"
5 CATEGORY="network"
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 TAGS="web-browser"
15 #HOST_ARCH="i486 arm"
17 GENERIC_MENUS="no"
18 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss libxslt"
19 BUILD_DEPENDS="glib-dev libnotify-dev gtk+-dev xorg-libXss-dev \
20 libwebkit-dev libunique-dev libsoup-dev libxslt-dev"
22 # Handle cross compilation
23 case "$ARCH" in
24 i?86)
25 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra
26 librsvg-apps python vala"
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 #mkdir -p build && cd build
33 #cmake \
34 #-DCMAKE_INSTALL_PREFIX=/usr \
35 #-DCMAKE_INSTALL_LIBDIR=lib \
36 #-DUSE_ZEITGEIST=0 .. &&
37 ./configure \
38 --jobs=4 \
39 --prefix=/usr \
40 --disable-zeitgeist &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p \
49 $fs/usr/share/doc/midori \
50 $fs/usr/share/pixmaps
52 cp -a $install/etc $fs
53 cp $stuff/config $fs/etc/xdg/midori
54 # add SliTaz token to DDG, add Twitter search
55 cd $fs && patch -p1 < $stuff/search.patch && status
57 # Midori use sqlite to store bookmarks
58 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib $fs/usr
63 # desktop files
64 cp -a $install/usr/share/applications $fs/usr/share
65 find $fs -name '*.desktop' -exec sed -i \
66 '/^Version/d; /^GenericName/d; /^X-/d; \
67 /^Actions=/d' \{\} \;
68 desktop=$fs/usr/share/applications/midori.desktop
69 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \
70 cut -d: -f1) - 2)
71 head -n $lastline $desktop > $desktop.new
72 mv -f $desktop.new $desktop
74 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori
75 cp -a $install/usr/share/midori $fs/usr/share
77 # Icons
78 cp -a $install/usr/share/icons $fs/usr/share
79 rm -rf $fs/usr/share/icons/hicolor/scalable
80 }