wok view marlin/receipt @ rev 17698

Up marlin: Add a patch
author Yuri Pourre <yuripourre@gmail.com>
date Thu Feb 26 22:08:46 2015 -0300 (2015-02-26)
parents ce9148142ee8
children ca4434937abf
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 patch -p1 < $stuff/marlin-fix-tests.patch
30 mkdir build && cd build &&
31 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
32 make &&
33 make DESTDIR=$install install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p \
40 $fs/usr/bin \
41 $fs/usr/lib \
42 $fs/usr/share/locale
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/marlin $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/share/applications $fs/usr/share
47 cp -a $install/usr/share/dbus* $fs/usr/share
48 cp -a $install/usr/share/glib* $fs/usr/share
49 cp -a $install/usr/share/icons $fs/usr/share
50 cp -a $install/usr/share/marlin $fs/usr/share
51 cp -a $install/usr/share/pixmaps $fs/usr/share
53 # localization
54 . $WOK/slitaz-i18n/stuff/locale-pack.conf
55 for lang in $LOCALE_PACK; do
56 langf=$install/usr/share/locale/$lang
57 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
58 done
60 # icons
61 mkdir -p $fs/usr/share/icons/hicolor/16x16
62 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16
63 cp -a $stuff/marlin.png $fs/usr/share/pixmaps
64 }