wok annotate midori/receipt @ rev 25296
updated screenfetch (3.5.0 -> 3.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 19 17:51:41 2022 +0100 (2022-07-19) |
parents | bd7510903310 |
children | f7cc93574053 |
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" |
Hans-G?nter@24970 | 6 TAGS="web-browser" |
al@14269 | 7 SHORT_DESC="Lightweight web browser based on GTK+/WebKit" |
pankso@878 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14996 | 9 LICENSE="LGPL2.1" |
Hans-G?nter@24970 | 10 WEB_SITE="http://twotoasts.de/index.php/midori/" |
Hans-G?nter@24970 | 11 |
pankso@2042 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@25042 | 13 WGET_URL="https://archive.xfce.org/src/archive/$PACKAGE/${VERSION%.*}/$TARBALL" |
pankso@16379 | 14 |
al@14269 | 15 GENERIC_MENUS="no" |
Hans-G?nter@24970 | 16 SUGGESTED="midori-lang" |
Hans-G?nter@24970 | 17 DEPENDS="libnotify libunique libsoup libwebkit libxslt xorg-libXss" |
Hans-G?nter@24970 | 18 BUILD_DEPENDS="glib-dev gtk+-dev libnotify-dev libsoup-dev libunique-dev |
Hans-G?nter@24970 | 19 libwebkit-dev libxslt-dev xorg-libXss-dev" |
pankso@878 | 20 |
pankso@16379 | 21 # Handle cross compilation |
pankso@16379 | 22 case "$ARCH" in |
pankso@16379 | 23 i?86) |
pankso@16379 | 24 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra |
pankso@16379 | 25 librsvg-apps python vala" |
pankso@16379 | 26 esac |
pankso@12082 | 27 |
pascal@24071 | 28 current_version() |
pascal@24071 | 29 { |
pascal@24071 | 30 wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \ |
pascal@24071 | 31 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24071 | 32 } |
pascal@24071 | 33 |
pankso@878 | 34 # Rules to configure and make the package. |
pankso@878 | 35 compile_rules() |
pankso@878 | 36 { |
pascal@20594 | 37 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala |
pascal@20594 | 38 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala |
pankso@16150 | 39 #mkdir -p build && cd build |
pankso@16150 | 40 #cmake \ |
pankso@16150 | 41 #-DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16150 | 42 #-DCMAKE_INSTALL_LIBDIR=lib \ |
pankso@16150 | 43 #-DUSE_ZEITGEIST=0 .. && |
pankso@5028 | 44 ./configure \ |
al@14269 | 45 --jobs=4 \ |
pankso@5028 | 46 --prefix=/usr \ |
monghitri@13984 | 47 --disable-zeitgeist && |
al@14269 | 48 make && |
al@14269 | 49 make install |
pankso@878 | 50 } |
pankso@878 | 51 |
pankso@878 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 53 genpkg_rules() |
pankso@878 | 54 { |
Hans-G?nter@24970 | 55 mkdir -p $fs/usr/share/doc/midori |
Hans-G?nter@24970 | 56 mkdir -p $fs/usr/share/pixmaps |
al@14269 | 57 |
Hans-G?nter@24970 | 58 cp -a $install/etc $fs |
Hans-G?nter@24970 | 59 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 60 # add SliTaz token to DDG, add Twitter search |
Hans-G?nter@24970 | 61 cd $fs |
Hans-G?nter@24970 | 62 patch -p1 < $stuff/search.patch |
Hans-G?nter@24970 | 63 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 |
Hans-G?nter@24970 | 68 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24970 | 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 |
Hans-G?nter@24970 | 75 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 76 |
pankso@12082 | 77 # Icons |
Hans-G?nter@24970 | 78 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@24970 | 79 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 80 } |