wok annotate midori/receipt @ rev 24501

updated drbd-utils (9.11.0 -> 9.20.2)
author Hans-G?nter Theisgen
date Sun Feb 20 09:23:47 2022 +0100 (2022-02-20)
parents 6831608a1b2a
children 336fe03dc42f
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"
pascal@24112 13 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION%.*}/$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
pascal@24071 29 current_version()
pascal@24071 30 {
pascal@24071 31 wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \
pascal@24071 32 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24071 33 }
pascal@24071 34
pankso@878 35 # Rules to configure and make the package.
pankso@878 36 compile_rules()
pankso@878 37 {
pascal@20594 38 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala
pascal@20594 39 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala
pankso@16150 40 #mkdir -p build && cd build
pankso@16150 41 #cmake \
pankso@16150 42 #-DCMAKE_INSTALL_PREFIX=/usr \
pankso@16150 43 #-DCMAKE_INSTALL_LIBDIR=lib \
pankso@16150 44 #-DUSE_ZEITGEIST=0 .. &&
pankso@5028 45 ./configure \
al@14269 46 --jobs=4 \
pankso@5028 47 --prefix=/usr \
monghitri@13984 48 --disable-zeitgeist &&
al@14269 49 make &&
al@14269 50 make install
pankso@878 51 }
pankso@878 52
pankso@878 53 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@878 54 genpkg_rules()
pankso@878 55 {
pankso@5028 56 mkdir -p \
al@14269 57 $fs/usr/share/doc/midori \
pankso@16150 58 $fs/usr/share/pixmaps
al@14269 59
pankso@12082 60 cp -a $install/etc $fs
slaxemulator@10110 61 cp $stuff/config $fs/etc/xdg/midori
al@14269 62 # add SliTaz token to DDG, add Twitter search
al@19833 63 cd $fs; patch -p1 < $stuff/search.patch; status
al@14269 64
pankso@12082 65 # Midori use sqlite to store bookmarks
pankso@12082 66 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori
al@14269 67
pankso@12082 68 cp -a $install/usr/bin $fs/usr
pankso@12082 69 cp -a $install/usr/lib $fs/usr
al@14269 70
al@14269 71 # desktop files
al@14269 72 cp -a $install/usr/share/applications $fs/usr/share
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 }