wok-next annotate midori/receipt @ rev 15037
turnserver: configure bug workaround
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 12 12:40:20 2013 +0000 (2013-08-12) |
parents | cb9ac999a97d |
children | 62fd9cdd3423 |
rev | line source |
---|---|
pankso@878 | 1 # SliTaz package receipt. |
pankso@878 | 2 |
pankso@878 | 3 PACKAGE="midori" |
pascal@14443 | 4 VERSION="0.5.0" |
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" |
al@14269 | 10 WEB_SITE="http://twotoasts.de/index.php/midori/" |
slaxemulator@12359 | 11 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION:0:3}/$TARBALL" |
al@14269 | 12 GENERIC_MENUS="no" |
pankso@878 | 13 |
al@14269 | 14 DEPENDS="libnotify libunique libwebkit xorg-libXss" |
al@14269 | 15 BUILD_DEPENDS="python vala glib-dev librsvg-apps libnotify-dev gtk+-dev \ |
al@14269 | 16 xorg-libXss-dev libwebkit-dev libunique-dev desktop-file-utils-extra" |
pankso@12082 | 17 |
pankso@878 | 18 # Rules to configure and make the package. |
pankso@878 | 19 compile_rules() |
pankso@878 | 20 { |
pankso@5028 | 21 ./configure \ |
al@14269 | 22 --jobs=4 \ |
pankso@5028 | 23 --prefix=/usr \ |
monghitri@13984 | 24 --disable-zeitgeist && |
al@14269 | 25 make && |
al@14269 | 26 make install |
pankso@878 | 27 } |
pankso@878 | 28 |
pankso@878 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 30 genpkg_rules() |
pankso@878 | 31 { |
pankso@5028 | 32 mkdir -p \ |
al@14269 | 33 $fs/usr/share/doc/midori \ |
pankso@5028 | 34 $fs/usr/share/pixmaps \ |
al@14269 | 35 |
pankso@12082 | 36 cp -a $install/etc $fs |
slaxemulator@10110 | 37 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 38 # add SliTaz token to DDG, add Twitter search |
al@14269 | 39 cd $fs && patch -p1 < $stuff/search.patch && status |
al@14269 | 40 |
pankso@12082 | 41 # Midori use sqlite to store bookmarks |
pankso@12082 | 42 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 43 |
pankso@12082 | 44 cp -a $install/usr/bin $fs/usr |
pankso@12082 | 45 cp -a $install/usr/lib $fs/usr |
al@14269 | 46 |
al@14269 | 47 # desktop files |
al@14269 | 48 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 49 find $fs -name '*.desktop' -exec sed -i \ |
al@14269 | 50 '/^Version/d; /^GenericName/d; /^X-/d; /^Name\[.*\]=Midori/d; \ |
al@14269 | 51 /^Actions=/d' \{\} \; |
al@14269 | 52 desktop=$fs/usr/share/applications/midori.desktop |
al@14269 | 53 lastline=$(expr $(grep -n '^\[Desktop Action TabNew\]' $desktop | \ |
al@14269 | 54 cut -d: -f1) - 2) |
al@14269 | 55 head -n $lastline $desktop > $desktop.new |
al@14269 | 56 mv -f $desktop.new $desktop |
al@14269 | 57 |
al@14269 | 58 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
al@14269 | 59 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 60 |
pankso@12082 | 61 # Icons |
al@14269 | 62 cp -a $install/usr/share/icons $fs/usr/share |
pankso@12082 | 63 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 64 } |