wok view marlin/receipt @ rev 17820

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