wok annotate midori/receipt @ rev 14858

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