wok annotate marlin/receipt @ rev 21478
updated mpc (0.25 -> 0.31)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 01 08:32:15 2019 +0100 (2019-05-01) |
parents | b306abf02078 |
children | 544e47246b33 |
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@15721 | 10 BRANCH="879" |
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@15721 | 20 # Rules to configure and make the package. |
pascal@15721 | 21 compile_rules() |
pascal@15721 | 22 { |
pascal@15721 | 23 # gee-1.0 is old while gee-0.8 is latest ;) |
pascal@15721 | 24 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f)) |
pascal@15721 | 25 |
pascal@15721 | 26 patch -p1 < $stuff/marlin-0.5.patch |
pascal@15721 | 27 patch -p1 < $stuff/marlin-icons.patch |
pascal@17820 | 28 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 | 29 sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala |
pascal@17820 | 30 sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala |
pascal@15721 | 31 |
pascal@15721 | 32 mkdir build && cd build && |
pascal@15721 | 33 cmake .. -DCMAKE_INSTALL_PREFIX=/usr && |
pascal@15721 | 34 make && |
pascal@15721 | 35 make DESTDIR=$install install |
pascal@15721 | 36 } |
pascal@15721 | 37 |
pascal@15721 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 39 genpkg_rules() |
pascal@15721 | 40 { |
pascal@15721 | 41 mkdir -p \ |
pascal@15721 | 42 $fs/usr/bin \ |
pascal@15721 | 43 $fs/usr/lib \ |
pascal@15721 | 44 $fs/usr/share/locale |
pascal@15721 | 45 cp -a $install/usr/bin $fs/usr |
pascal@15721 | 46 cp -a $install/usr/lib/marlin $fs/usr/lib |
pascal@15721 | 47 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15721 | 48 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15721 | 49 cp -a $install/usr/share/dbus* $fs/usr/share |
pascal@15721 | 50 cp -a $install/usr/share/glib* $fs/usr/share |
pascal@15721 | 51 cp -a $install/usr/share/icons $fs/usr/share |
pascal@15721 | 52 cp -a $install/usr/share/marlin $fs/usr/share |
pascal@15721 | 53 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15721 | 54 |
pascal@15721 | 55 # localization |
pascal@15721 | 56 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pascal@15721 | 57 for lang in $LOCALE_PACK; do |
pascal@15721 | 58 langf=$install/usr/share/locale/$lang |
pascal@15721 | 59 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
pascal@15721 | 60 done |
pascal@15721 | 61 |
pascal@15721 | 62 # icons |
pascal@15721 | 63 mkdir -p $fs/usr/share/icons/hicolor/16x16 |
pascal@15721 | 64 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16 |
pascal@15721 | 65 cp -a $stuff/marlin.png $fs/usr/share/pixmaps |
pascal@15721 | 66 } |