wok-current annotate midori/receipt @ rev 25730
Fix depend for xorg-server (libxshmfence)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 13:05:56 2024 +0000 (2 months ago) |
parents | a23978bfa665 |
children |
rev | line source |
---|---|
pankso@878 | 1 # SliTaz package receipt. |
pankso@878 | 2 |
pankso@878 | 3 PACKAGE="midori" |
shann@25629 | 4 VERSION="0.5.11" |
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" |
pascal@25499 | 10 WEB_SITE="https://github.com/midori-browser/core" |
Hans-G?nter@24970 | 11 |
pankso@2042 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
shann@25629 | 13 WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL" |
pankso@16379 | 14 |
al@14269 | 15 GENERIC_MENUS="no" |
Hans-G?nter@24970 | 16 SUGGESTED="midori-lang" |
shann@25634 | 17 DEPENDS="libnotify libunique libsoup webkit2gtk libxslt xorg-libXss \ |
shann@25634 | 18 libsoup248-gnome gcr-base harfbuzz-icu gst-plugins-base-1.0 libsecret \ |
shann@25629 | 19 mesa libegl-mesa libwebp" |
shann@25634 | 20 BUILD_DEPENDS="glib-dev gtk+-dev gtk+3-dev libnotify-dev libsoup-dev \ |
shann@25634 | 21 libunique-dev webkit2gtk-dev libxslt-dev xorg-libXss-dev gcr-dev" |
pankso@878 | 22 |
pankso@16379 | 23 # Handle cross compilation |
pankso@16379 | 24 case "$ARCH" in |
pankso@16379 | 25 i?86) |
pankso@16379 | 26 BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra |
pankso@16379 | 27 librsvg-apps python vala" |
pankso@16379 | 28 esac |
pankso@12082 | 29 |
pascal@24071 | 30 current_version() |
pascal@24071 | 31 { |
pascal@24071 | 32 wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \ |
pascal@24071 | 33 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24071 | 34 } |
pascal@24071 | 35 |
pankso@878 | 36 # Rules to configure and make the package. |
pankso@878 | 37 compile_rules() |
pankso@878 | 38 { |
shann@25629 | 39 # patch for vala >= 0.36 |
shann@25629 | 40 # see bugs.freebsd.org/bugzilla/show_bug.cgi?id=222015 |
shann@25629 | 41 patch -p1 < $stuff/midori-notebook.patch |
shann@25629 | 42 patch -p1 < $stuff/midori-extensions-adblock.patch |
shann@25629 | 43 patch -p1 < $stuff/midori-extensions-apps.patch |
shann@25629 | 44 patch -p1 < $stuff/midori-extensions-history.patch |
shann@25629 | 45 patch -p1 < $stuff/midori-extensions-notes.patch |
shann@25629 | 46 patch -p1 < $stuff/midori-extensions-transfers.patch |
shann@25629 | 47 |
shann@25629 | 48 # patch midori to avoid segmentfault |
shann@25629 | 49 # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834236 |
shann@25629 | 50 patch -p1 < $stuff/midori-webkitgtk.patch |
shann@25629 | 51 |
pascal@20594 | 52 sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala |
pascal@20594 | 53 sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala |
shann@25629 | 54 |
shann@25629 | 55 # patch for cmake |
shann@25629 | 56 patch -p1 < $stuff/midori-cmake.patch |
shann@25629 | 57 |
shann@25634 | 58 # Let's pkg-config found libsoup248 |
shann@25634 | 59 export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/lib/libsoup248/pkgconfig" |
shann@25634 | 60 |
shann@25634 | 61 # Fix build with new glib/gtk |
shann@25634 | 62 find . -type f -regex '.*\.\(c\|vala\)' -exec sed -i \ |
shann@25634 | 63 's/Gtk.STOCK_FILE/"text-x-generic"/g;s/Gtk.STOCK_CLOSE/"window-close"/g;s/Gtk.STOCK_ADD/"list-add"/g;s/Gtk.STOCK_HELP/"help-browser"/g;s/Gtk.STOCK_APPLY/""/g;s/Gtk.STOCK_CANCEL/""/g;s/Gtk.STOCK_COPY/"edit-copy"/g;s/Gtk.STOCK_DELETE/"edit-delete"/g;s/Gtk.STOCK_EDIT/""/g;s/Gtk.STOCK_OPEN/"document-open"/g;s/Gtk.STOCK_PREFERENCES/"preferences-system"/g;s/Gtk.STOCK_PROPERTIES/"document-properties"/g;s/Gtk.STOCK_SAVE/"document-save"/g;s/Gtk.STOCK_CLEAR/"edit-clear"/g;s/Gtk.STOCK_DIRECTORY/"folder"/g' \ |
shann@25634 | 64 "{}" +; |
shann@25634 | 65 |
shann@25629 | 66 mkdir -p build && cd build |
shann@25629 | 67 cmake \ |
shann@25629 | 68 -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ |
shann@25629 | 69 -DCMAKE_INSTALL_PREFIX=/usr \ |
shann@25629 | 70 -DCMAKE_INSTALL_LIBDIR=lib \ |
shann@25629 | 71 -DUSE_GTK3=OFF \ |
shann@25634 | 72 -DHALF_BRO_INCOM_WEBKIT2=ON \ |
shann@25629 | 73 -DUSE_ZEITGEIST=0 .. && |
shann@25629 | 74 #./configure \ |
shann@25629 | 75 # --prefix=/usr \ |
shann@25629 | 76 # --disable-zeitgeist && |
al@14269 | 77 make && |
shann@25629 | 78 make install DESTDIR=$install |
pankso@878 | 79 } |
pankso@878 | 80 |
pankso@878 | 81 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@878 | 82 genpkg_rules() |
pankso@878 | 83 { |
Hans-G?nter@24970 | 84 mkdir -p $fs/usr/share/doc/midori |
Hans-G?nter@24970 | 85 mkdir -p $fs/usr/share/pixmaps |
al@14269 | 86 |
Hans-G?nter@24970 | 87 cp -a $install/etc $fs |
Hans-G?nter@24970 | 88 cp $stuff/config $fs/etc/xdg/midori |
al@14269 | 89 # add SliTaz token to DDG, add Twitter search |
Hans-G?nter@24970 | 90 cd $fs |
Hans-G?nter@24970 | 91 patch -p1 < $stuff/search.patch |
Hans-G?nter@24970 | 92 status |
al@14269 | 93 |
pankso@12082 | 94 # Midori use sqlite to store bookmarks |
pankso@12082 | 95 #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori |
al@14269 | 96 |
Hans-G?nter@24970 | 97 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24970 | 98 cp -a $install/usr/lib $fs/usr |
al@14269 | 99 |
al@14269 | 100 # desktop files |
al@14269 | 101 cp -a $install/usr/share/applications $fs/usr/share |
al@14269 | 102 |
al@14269 | 103 cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori |
Hans-G?nter@24970 | 104 cp -a $install/usr/share/midori $fs/usr/share |
al@14269 | 105 |
pankso@12082 | 106 # Icons |
Hans-G?nter@24970 | 107 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@24970 | 108 rm -rf $fs/usr/share/icons/hicolor/scalable |
pankso@878 | 109 } |