wok-next view marlin/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | d6378d455338 |
children | a06249bc3ede |
line source
1 # SliTaz package receipt v2.
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"
11 BRANCH="879"
12 TARBALL="$PACKAGE-$BRANCH.tar.bz2"
13 WGET_URL="bzr|lp:marlin"
15 BUILD_DEPENDS="bazaar cmake vala varka-dev gtk+3-dev libgee-dev sqlite3-dev \
16 dbus-glib-dev libnotify-gtk3-dev dconf-dev tumbler-dev ffmpegthumbnailer-dev \
17 granite-dev gettext"
18 SPLIT="marlin-dev"
20 compile_rules() {
21 # gee-1.0 is old while gee-0.8 is latest ;)
22 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f))
24 sed -i 's/Gdk.EventKey event = Gdk.EventKey(/Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS/' libwidgets/tests/tests-pathbar.vala
25 sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala
26 sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala
28 mkdir build && cd build &&
29 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
30 make &&
31 make DESTDIR=$install install
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 marlin)
37 mkdir -p \
38 $fs/usr/bin \
39 $fs/usr/lib \
40 $fs/usr/share/locale
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/marlin $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/share/applications $fs/usr/share
45 cp -a $install/usr/share/dbus* $fs/usr/share
46 cp -a $install/usr/share/glib* $fs/usr/share
47 cp -a $install/usr/share/icons $fs/usr/share
48 cp -a $install/usr/share/marlin $fs/usr/share
49 cp -a $install/usr/share/pixmaps $fs/usr/share
51 # localization
52 . $WOK/slitaz-i18n/stuff/locale-pack.conf
53 for lang in $LOCALE_PACK; do
54 langf=$install/usr/share/locale/$lang
55 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
56 done
58 # icons
59 mkdir -p $fs/usr/share/icons/hicolor/16x16
60 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16
61 cp -a $stuff/marlin.png $fs/usr/share/pixmaps
62 DEPENDS="dbus-glib gtk+3 libgee libnotify-gtk3 libsqlite3 varka \
63 dconf"
64 SUGGESTED="tumbler ffmpegthumbnailer granite extended-actions"
65 ;;
66 *-dev)
67 copy @dev
68 ;;
69 esac
70 }