wok annotate midori/receipt @ rev 18145
Add defragfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 18 16:31:01 2015 +0200 (2015-06-18) |
parents | e1ee172acb7b |
children | ebb57f2c0d8a |
rev | line source |
---|---|
pankso@878 | 1 # SliTaz package receipt. |
pankso@878 | 2 |
pankso@878 | 3 PACKAGE="midori" |
pankso@16150 | 4 VERSION="0.5.2" |
al@17501 | 5 CATEGORY="network" |
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@17501 | 14 TAGS="web-browser" |
pankso@16379 | 15 #HOST_ARCH="i486 arm" |
pankso@16379 | 16 |
al@14269 | 17 GENERIC_MENUS="no" |
pankso@16379 | 18 DEPENDS="libnotify libunique libsoup libwebkit xorg-libXss libxslt" |
pankso@16379 | 19 BUILD_DEPENDS="glib-dev libnotify-dev gtk+-dev xorg-libXss-dev \ |
pankso@16379 | 20 libwebkit-dev libunique-dev libsoup-dev libxslt-dev" |
pankso@878 | 21 |
pankso@16379 | 22 # Handle cross compilation |
pankso@16379 | 23 case "$ARCH" in |
pankso@16379 | 24 i?86) |
pankso@16379 | 25 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra |
pankso@16379 | 26 librsvg-apps python vala" |
pankso@16379 | 27 esac |
pankso@12082 | 28 |
pankso@878 | 29 # Rules to configure and make the package. |
pankso@878 | 30 compile_rules() |
pankso@878 | 31 { |
pankso@16150 | 32 #mkdir -p build && cd build |
pankso@16150 | 33 #cmake \ |
pankso@16150 | 34 #-DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16150 | 35 #-DCMAKE_INSTALL_LIBDIR=lib \ |
pankso@16150 | 36 #-DUSE_ZEITGEIST=0 .. && |
pankso@5028 | 37 ./configure \ |
al@14269 | 38 --jobs=4 \ |
pankso@5028 | 39 --prefix=/usr \ |
monghitri@13984 | 40 --disable-zeitgeist && |
al@14269 | 41 make && |
al@14269 | 42 make install |
pankso@878 | 43 } |
pankso@878 | 44 |
pankso@878 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 46 genpkg_rules() |
pankso@878 | 47 { |
pankso@5028 | 48 mkdir -p \ |
al@14269 | 49 $fs/usr/share/doc/midori \ |
pankso@16150 | 50 $fs/usr/share/pixmaps |
al@14269 | 51 |
pankso@12082 | 52 cp -a $install/etc $fs |
slaxemulator@10110 | 53 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 54 # add SliTaz token to DDG, add Twitter search |
al@14269 | 55 cd $fs && patch -p1 < $stuff/search.patch && status |
al@14269 | 56 |
pankso@12082 | 57 # Midori use sqlite to store bookmarks |
pankso@12082 | 58 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 59 |
pankso@12082 | 60 cp -a $install/usr/bin $fs/usr |
pankso@12082 | 61 cp -a $install/usr/lib $fs/usr |
al@14269 | 62 |
al@14269 | 63 # desktop files |
al@14269 | 64 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 65 find $fs -name '*.desktop' -exec sed -i \ |
al@14269 | 66 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \ |
al@14269 | 67 /^Actions=/d' \{\} \; |
al@14269 | 68 desktop=$fs/usr/share/applications/midori.desktop |
al@14269 | 69 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \ |
al@14269 | 70 cut -d: -f1) - 2) |
al@14269 | 71 head -n $lastline $desktop > $desktop.new |
al@14269 | 72 mv -f $desktop.new $desktop |
al@14269 | 73 |
al@14269 | 74 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
al@14269 | 75 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 76 |
pankso@12082 | 77 # Icons |
al@14269 | 78 cp -a $install/usr/share/icons $fs/usr/share |
pankso@12082 | 79 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 80 } |