wok-6.x view marlin/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | ca4434937abf |
children | 17901f97b861 |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/marlin/files/ 2>/dev/null | \
24 sed '/sub-label/!d;s|.*marlin-||;s|.tar.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # gee-1.0 is old while gee-0.8 is latest ;)
31 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f))
33 patch -p1 < $stuff/marlin-0.5.patch
34 patch -p1 < $stuff/marlin-icons.patch
35 sed -i 's/Gdk.EventKey event = Gdk.EventKey(/Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS/' libwidgets/tests/tests-pathbar.vala
36 sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala
37 sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala
39 mkdir build && cd build &&
40 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
41 make &&
42 make DESTDIR=$install install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p \
49 $fs/usr/bin \
50 $fs/usr/lib \
51 $fs/usr/share/locale
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/marlin $fs/usr/lib
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/share/applications $fs/usr/share
56 cp -a $install/usr/share/dbus* $fs/usr/share
57 cp -a $install/usr/share/glib* $fs/usr/share
58 cp -a $install/usr/share/icons $fs/usr/share
59 cp -a $install/usr/share/marlin $fs/usr/share
60 cp -a $install/usr/share/pixmaps $fs/usr/share
62 # localization
63 . $WOK/slitaz-i18n/stuff/locale-pack.conf
64 for lang in $LOCALE_PACK; do
65 langf=$install/usr/share/locale/$lang
66 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
67 done
69 # icons
70 mkdir -p $fs/usr/share/icons/hicolor/16x16
71 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16
72 cp -a $stuff/marlin.png $fs/usr/share/pixmaps
73 }