wok-6.x annotate midori/receipt @ rev 16150
Up: midori (0.5.2)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 23:25:38 2014 +0100 (2014-03-26) |
parents | 76b72f1ad63c |
children | e1ee172acb7b |
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" |
al@14269 | 14 GENERIC_MENUS="no" |
pankso@878 | 15 |
pankso@16150 | 16 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss" |
al@14269 | 17 BUILD_DEPENDS="python vala glib-dev librsvg-apps libnotify-dev gtk+-dev \ |
pankso@16150 | 18 xorg-libXss-dev libwebkit-dev libunique-dev desktop-file-utils-extra \ |
pankso@16150 | 19 libsoup-dev cmake" |
pankso@12082 | 20 |
pankso@878 | 21 # Rules to configure and make the package. |
pankso@878 | 22 compile_rules() |
pankso@878 | 23 { |
pankso@16150 | 24 #mkdir -p build && cd build |
pankso@16150 | 25 #cmake \ |
pankso@16150 | 26 #-DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16150 | 27 #-DCMAKE_INSTALL_LIBDIR=lib \ |
pankso@16150 | 28 #-DUSE_ZEITGEIST=0 .. && |
pankso@5028 | 29 ./configure \ |
al@14269 | 30 --jobs=4 \ |
pankso@5028 | 31 --prefix=/usr \ |
monghitri@13984 | 32 --disable-zeitgeist && |
al@14269 | 33 make && |
al@14269 | 34 make install |
pankso@878 | 35 } |
pankso@878 | 36 |
pankso@878 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 38 genpkg_rules() |
pankso@878 | 39 { |
pankso@5028 | 40 mkdir -p \ |
al@14269 | 41 $fs/usr/share/doc/midori \ |
pankso@16150 | 42 $fs/usr/share/pixmaps |
al@14269 | 43 |
pankso@12082 | 44 cp -a $install/etc $fs |
slaxemulator@10110 | 45 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 46 # add SliTaz token to DDG, add Twitter search |
al@14269 | 47 cd $fs && patch -p1 < $stuff/search.patch && status |
al@14269 | 48 |
pankso@12082 | 49 # Midori use sqlite to store bookmarks |
pankso@12082 | 50 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 51 |
pankso@12082 | 52 cp -a $install/usr/bin $fs/usr |
pankso@12082 | 53 cp -a $install/usr/lib $fs/usr |
al@14269 | 54 |
al@14269 | 55 # desktop files |
al@14269 | 56 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 57 find $fs -name '*.desktop' -exec sed -i \ |
al@14269 | 58 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \ |
al@14269 | 59 /^Actions=/d' \{\} \; |
al@14269 | 60 desktop=$fs/usr/share/applications/midori.desktop |
al@14269 | 61 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \ |
al@14269 | 62 cut -d: -f1) - 2) |
al@14269 | 63 head -n $lastline $desktop > $desktop.new |
al@14269 | 64 mv -f $desktop.new $desktop |
al@14269 | 65 |
al@14269 | 66 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
al@14269 | 67 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 68 |
pankso@12082 | 69 # Icons |
al@14269 | 70 cp -a $install/usr/share/icons $fs/usr/share |
pankso@12082 | 71 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 72 } |