wok-next annotate midori/receipt @ rev 16700
Up: slitaz-base-files (5.6.3): fix bug with installing coreutils-line package
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon May 26 16:03:09 2014 +0300 (2014-05-26) |
parents | 62fd9cdd3423 |
children | 5d53e8ccbc8d |
rev | line source |
---|---|
pankso@878 | 1 # SliTaz package receipt. |
pankso@878 | 2 |
pankso@878 | 3 PACKAGE="midori" |
pankso@16150 | 4 VERSION="0.5.2" |
pankso@878 | 5 CATEGORY="x-window" |
al@14269 | 6 SHORT_DESC="Lightweight web browser based on GTK+/WebKit" |
pankso@878 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
pankso@2042 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@16150 | 10 #TARBALL="${PACKAGE}_${VERSION}_all_.tar.bz2" |
al@14269 | 11 WEB_SITE="http://twotoasts.de/index.php/midori/" |
pankso@16150 | 12 #WGET_URL="http://midori-browser.org/downloads/$TARBALL" |
slaxemulator@12359 | 13 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL" |
pankso@16379 | 14 #HOST_ARCH="i486 arm" |
pankso@16379 | 15 |
al@14269 | 16 GENERIC_MENUS="no" |
pankso@16379 | 17 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss libxslt" |
pankso@16379 | 18 BUILD_DEPENDS="glib-dev libnotify-dev gtk+-dev xorg-libXss-dev \ |
pankso@16379 | 19 libwebkit-dev libunique-dev libsoup-dev libxslt-dev" |
pankso@878 | 20 |
pankso@16379 | 21 # Handle cross compilation |
pankso@16379 | 22 case "$ARCH" in |
pankso@16379 | 23 i?86) |
pankso@16379 | 24 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra |
pankso@16379 | 25 librsvg-apps python vala" |
pankso@16379 | 26 esac |
pankso@12082 | 27 |
pankso@878 | 28 # Rules to configure and make the package. |
pankso@878 | 29 compile_rules() |
pankso@878 | 30 { |
pankso@16150 | 31 #mkdir -p build && cd build |
pankso@16150 | 32 #cmake \ |
pankso@16150 | 33 #-DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16150 | 34 #-DCMAKE_INSTALL_LIBDIR=lib \ |
pankso@16150 | 35 #-DUSE_ZEITGEIST=0 .. && |
pankso@5028 | 36 ./configure \ |
al@14269 | 37 --jobs=4 \ |
pankso@5028 | 38 --prefix=/usr \ |
monghitri@13984 | 39 --disable-zeitgeist && |
al@14269 | 40 make && |
al@14269 | 41 make install |
pankso@878 | 42 } |
pankso@878 | 43 |
pankso@878 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 45 genpkg_rules() |
pankso@878 | 46 { |
pankso@5028 | 47 mkdir -p \ |
al@14269 | 48 $fs/usr/share/doc/midori \ |
pankso@16150 | 49 $fs/usr/share/pixmaps |
al@14269 | 50 |
pankso@12082 | 51 cp -a $install/etc $fs |
slaxemulator@10110 | 52 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 53 # add SliTaz token to DDG, add Twitter search |
al@14269 | 54 cd $fs && patch -p1 < $stuff/search.patch && status |
al@14269 | 55 |
pankso@12082 | 56 # Midori use sqlite to store bookmarks |
pankso@12082 | 57 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 58 |
pankso@12082 | 59 cp -a $install/usr/bin $fs/usr |
pankso@12082 | 60 cp -a $install/usr/lib $fs/usr |
al@14269 | 61 |
al@14269 | 62 # desktop files |
al@14269 | 63 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 64 find $fs -name '*.desktop' -exec sed -i \ |
al@14269 | 65 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \ |
al@14269 | 66 /^Actions=/d' \{\} \; |
al@14269 | 67 desktop=$fs/usr/share/applications/midori.desktop |
al@14269 | 68 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \ |
al@14269 | 69 cut -d: -f1) - 2) |
al@14269 | 70 head -n $lastline $desktop > $desktop.new |
al@14269 | 71 mv -f $desktop.new $desktop |
al@14269 | 72 |
al@14269 | 73 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
al@14269 | 74 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 75 |
pankso@12082 | 76 # Icons |
al@14269 | 77 cp -a $install/usr/share/icons $fs/usr/share |
pankso@12082 | 78 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 79 } |