wok annotate midori/receipt @ rev 20793
linld: fix strcatb
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 14 18:37:56 2019 +0100 (2019-02-14) |
parents | 07eb3c946dea |
children | ee53899c6189 |
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 { |
pascal@20594 | 32 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala |
pascal@20594 | 33 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala |
pankso@16150 | 34 #mkdir -p build && cd build |
pankso@16150 | 35 #cmake \ |
pankso@16150 | 36 #-DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16150 | 37 #-DCMAKE_INSTALL_LIBDIR=lib \ |
pankso@16150 | 38 #-DUSE_ZEITGEIST=0 .. && |
pankso@5028 | 39 ./configure \ |
al@14269 | 40 --jobs=4 \ |
pankso@5028 | 41 --prefix=/usr \ |
monghitri@13984 | 42 --disable-zeitgeist && |
al@14269 | 43 make && |
al@14269 | 44 make install |
pankso@878 | 45 } |
pankso@878 | 46 |
pankso@878 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 48 genpkg_rules() |
pankso@878 | 49 { |
pankso@5028 | 50 mkdir -p \ |
al@14269 | 51 $fs/usr/share/doc/midori \ |
pankso@16150 | 52 $fs/usr/share/pixmaps |
al@14269 | 53 |
pankso@12082 | 54 cp -a $install/etc $fs |
slaxemulator@10110 | 55 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 56 # add SliTaz token to DDG, add Twitter search |
al@19833 | 57 cd $fs; patch -p1 < $stuff/search.patch; status |
al@14269 | 58 |
pankso@12082 | 59 # Midori use sqlite to store bookmarks |
pankso@12082 | 60 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 61 |
pankso@12082 | 62 cp -a $install/usr/bin $fs/usr |
pankso@12082 | 63 cp -a $install/usr/lib $fs/usr |
al@14269 | 64 |
al@14269 | 65 # desktop files |
al@14269 | 66 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 67 |
al@14269 | 68 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
al@14269 | 69 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 70 |
pankso@12082 | 71 # Icons |
al@14269 | 72 cp -a $install/usr/share/icons $fs/usr/share |
pankso@12082 | 73 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 74 } |