wok-6.x view midori/receipt @ rev 24112
Typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 29 08:44:59 2021 +0000 (2021-09-29) |
parents | 6831608a1b2a |
children | 336fe03dc42f |
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%.*}/$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 current_version()
30 {
31 wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \
32 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala
39 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala
40 #mkdir -p build && cd build
41 #cmake \
42 #-DCMAKE_INSTALL_PREFIX=/usr \
43 #-DCMAKE_INSTALL_LIBDIR=lib \
44 #-DUSE_ZEITGEIST=0 .. &&
45 ./configure \
46 --jobs=4 \
47 --prefix=/usr \
48 --disable-zeitgeist &&
49 make &&
50 make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p \
57 $fs/usr/share/doc/midori \
58 $fs/usr/share/pixmaps
60 cp -a $install/etc $fs
61 cp $stuff/config $fs/etc/xdg/midori
62 # add SliTaz token to DDG, add Twitter search
63 cd $fs; patch -p1 < $stuff/search.patch; 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 }