wok view midori/receipt @ rev 25296
updated screenfetch (3.5.0 -> 3.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 19 17:51:41 2022 +0100 (2022-07-19) |
parents | bd7510903310 |
children | f7cc93574053 |
line source
1 # SliTaz package receipt.
3 PACKAGE="midori"
4 VERSION="0.5.2"
5 CATEGORY="network"
6 TAGS="web-browser"
7 SHORT_DESC="Lightweight web browser based on GTK+/WebKit"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="http://twotoasts.de/index.php/midori/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://archive.xfce.org/src/archive/$PACKAGE/${VERSION%.*}/$TARBALL"
15 GENERIC_MENUS="no"
16 SUGGESTED="midori-lang"
17 DEPENDS="libnotify libunique libsoup libwebkit libxslt xorg-libXss"
18 BUILD_DEPENDS="glib-dev gtk+-dev libnotify-dev libsoup-dev libunique-dev
19 libwebkit-dev libxslt-dev xorg-libXss-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 current_version()
29 {
30 wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \
31 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala
38 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala
39 #mkdir -p build && cd build
40 #cmake \
41 #-DCMAKE_INSTALL_PREFIX=/usr \
42 #-DCMAKE_INSTALL_LIBDIR=lib \
43 #-DUSE_ZEITGEIST=0 .. &&
44 ./configure \
45 --jobs=4 \
46 --prefix=/usr \
47 --disable-zeitgeist &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share/doc/midori
56 mkdir -p $fs/usr/share/pixmaps
58 cp -a $install/etc $fs
59 cp $stuff/config $fs/etc/xdg/midori
60 # add SliTaz token to DDG, add Twitter search
61 cd $fs
62 patch -p1 < $stuff/search.patch
63 status
65 # Midori use sqlite to store bookmarks
66 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
68 cp -a $install/usr/bin $fs/usr
69 cp -a $install/usr/lib $fs/usr
71 # desktop files
72 cp -a $install/usr/share/applications $fs/usr/share
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 }