wok-current annotate marlin/receipt @ rev 25361

sshrc: typo in wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 27 16:25:20 2022 +0000 (2022-07-27)
parents 544e47246b33
children
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="marlin"
pascal@15721 4 VERSION="0.5"
pascal@15721 5 CATEGORY="utilities"
pascal@15721 6 SHORT_DESC="A sleek and fast GTK3 file manager"
pascal@15721 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15721 8 LICENSE="GPL2 GPL3"
pascal@15721 9 WEB_SITE="https://launchpad.net/marlin"
pascal@25076 10 BRANCH="886"
pascal@15721 11 TARBALL="$PACKAGE-$BRANCH.tar.bz2"
pascal@15721 12 WGET_URL="bzr|lp:marlin"
pascal@15721 13
pascal@15721 14 DEPENDS="dbus-glib gtk+3 libgee libnotify-gtk3 libsqlite varka dconf"
pascal@15721 15 SUGGESTED="tumbler ffmpegthumbnailer granite extended-actions"
pascal@15721 16 BUILD_DEPENDS="bazaar cmake vala varka-dev gtk+3-dev libgee-dev sqlite-dev \
pascal@15721 17 dbus-glib-dev libnotify-gtk3-dev dconf-dev tumbler-dev ffmpegthumbnailer-dev \
pascal@15721 18 granite-dev"
pascal@15721 19
pascal@24540 20 # What is the latest version available today?
pascal@24540 21 current_version()
pascal@24540 22 {
pascal@24540 23 wget -O - https://sourceforge.net/projects/marlin/files/ 2>/dev/null | \
pascal@24540 24 sed '/sub-label/!d;s|.*marlin-||;s|.tar.*||;q'
pascal@24540 25 }
pascal@24540 26
pascal@15721 27 # Rules to configure and make the package.
pascal@15721 28 compile_rules()
pascal@15721 29 {
pascal@15721 30 # gee-1.0 is old while gee-0.8 is latest ;)
pascal@15721 31 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f))
pascal@15721 32
pascal@15721 33 patch -p1 < $stuff/marlin-0.5.patch
pascal@15721 34 patch -p1 < $stuff/marlin-icons.patch
pascal@17820 35 sed -i 's/Gdk.EventKey event = Gdk.EventKey(/Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS/' libwidgets/tests/tests-pathbar.vala
pascal@17820 36 sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala
pascal@17820 37 sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala
pascal@15721 38
pascal@15721 39 mkdir build && cd build &&
pascal@15721 40 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
pascal@15721 41 make &&
pascal@15721 42 make DESTDIR=$install install
pascal@15721 43 }
pascal@15721 44
pascal@15721 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 46 genpkg_rules()
pascal@15721 47 {
pascal@15721 48 mkdir -p \
pascal@15721 49 $fs/usr/bin \
pascal@15721 50 $fs/usr/lib \
pascal@15721 51 $fs/usr/share/locale
pascal@15721 52 cp -a $install/usr/bin $fs/usr
pascal@15721 53 cp -a $install/usr/lib/marlin $fs/usr/lib
pascal@15721 54 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15721 55 cp -a $install/usr/share/applications $fs/usr/share
pascal@15721 56 cp -a $install/usr/share/dbus* $fs/usr/share
pascal@15721 57 cp -a $install/usr/share/glib* $fs/usr/share
pascal@15721 58 cp -a $install/usr/share/icons $fs/usr/share
pascal@15721 59 cp -a $install/usr/share/marlin $fs/usr/share
pascal@15721 60 cp -a $install/usr/share/pixmaps $fs/usr/share
pascal@15721 61
pascal@15721 62 # localization
pascal@15721 63 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pascal@15721 64 for lang in $LOCALE_PACK; do
pascal@15721 65 langf=$install/usr/share/locale/$lang
pascal@15721 66 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
pascal@15721 67 done
pascal@15721 68
pascal@15721 69 # icons
pascal@15721 70 mkdir -p $fs/usr/share/icons/hicolor/16x16
pascal@15721 71 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16
pascal@15721 72 cp -a $stuff/marlin.png $fs/usr/share/pixmaps
pascal@15721 73 }