
Receipt for package "midori"
# SliTaz package receipt. PACKAGE="midori" VERSION="0.5.11" CATEGORY="network" TAGS="web-browser" SHORT_DESC="Lightweight web browser based on GTK+/WebKit" MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2.1" WEB_SITE="https://github.com/midori-browser/core" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL" GENERIC_MENUS="no" SUGGESTED="midori-lang" DEPENDS="libnotify libunique libsoup webkit2gtk libxslt xorg-libXss \ libsoup248-gnome gcr-base harfbuzz-icu gst-plugins-base-1.0 libsecret \ mesa libegl-mesa libwebp" BUILD_DEPENDS="glib-dev gtk+-dev gtk+3-dev libnotify-dev libsoup-dev \ libunique-dev webkit2gtk-dev libxslt-dev xorg-libXss-dev gcr-dev" # Handle cross compilation case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake desktop-file-utils-extra librsvg-apps python vala" esac current_version() { wget -O - https://github.com/midori-browser/core/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # patch for vala >= 0.36 # see bugs.freebsd.org/bugzilla/show_bug.cgi?id=222015 patch -p1 < $stuff/midori-notebook.patch patch -p1 < $stuff/midori-extensions-adblock.patch patch -p1 < $stuff/midori-extensions-apps.patch patch -p1 < $stuff/midori-extensions-history.patch patch -p1 < $stuff/midori-extensions-notes.patch patch -p1 < $stuff/midori-extensions-transfers.patch # patch midori to avoid segmentfault # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834236 patch -p1 < $stuff/midori-webkitgtk.patch sed -i 's|[^\.]ListStore| Gtk.ListStore|' extensions/history-list.vala sed -i 's|store.remove (iter)|store.remove (ref iter)|' extensions/transfers.vala # patch for cmake patch -p1 < $stuff/midori-cmake.patch # Let's pkg-config found libsoup248 export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/lib/libsoup248/pkgconfig" # Fix build with new glib/gtk find . -type f -regex '.*\.\(c\|vala\)' -exec sed -i \ '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' \ "{}" +; mkdir -p build && cd build cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DUSE_GTK3=OFF \ -DHALF_BRO_INCOM_WEBKIT2=ON \ -DUSE_ZEITGEIST=0 .. && #./configure \ # --prefix=/usr \ # --disable-zeitgeist && make && make install DESTDIR=$install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/doc/midori mkdir -p $fs/usr/share/pixmaps cp -a $install/etc $fs cp $stuff/config $fs/etc/xdg/midori # add SliTaz token to DDG, add Twitter search cd $fs patch -p1 < $stuff/search.patch status # Midori use sqlite to store bookmarks #cp $stuff/bookmarks.xbel $fs/etc/xdg/midori cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr # desktop files cp -a $install/usr/share/applications $fs/usr/share cp -a $install/usr/share/doc/midori/faq* $fs/usr/share/doc/midori cp -a $install/usr/share/midori $fs/usr/share # Icons cp -a $install/usr/share/icons $fs/usr/share rm -rf $fs/usr/share/icons/hicolor/scalable }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)