wok-next annotate marlin/receipt @ rev 20488
palemoon: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 11:00:54 2018 +0100 (2018-03-12) |
parents | 2809ecb8c754 |
children | d6378d455338 |
rev | line source |
---|---|
al@20456 | 1 # SliTaz package receipt v2. |
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" |
al@20456 | 10 |
pascal@15721 | 11 BRANCH="879" |
pascal@15721 | 12 TARBALL="$PACKAGE-$BRANCH.tar.bz2" |
pascal@15721 | 13 WGET_URL="bzr|lp:marlin" |
pascal@15721 | 14 |
pascal@20098 | 15 BUILD_DEPENDS="bazaar cmake vala varka-dev gtk+3-dev libgee-dev sqlite3-dev \ |
pascal@15721 | 16 dbus-glib-dev libnotify-gtk3-dev dconf-dev tumbler-dev ffmpegthumbnailer-dev \ |
pascal@15721 | 17 granite-dev" |
al@20456 | 18 SPLIT="marlin-dev" |
pascal@15721 | 19 |
al@20456 | 20 compile_rules() { |
pascal@15721 | 21 # gee-1.0 is old while gee-0.8 is latest ;) |
pascal@15721 | 22 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f)) |
pascal@15721 | 23 |
pascal@15721 | 24 patch -p1 < $stuff/marlin-0.5.patch |
pascal@15721 | 25 patch -p1 < $stuff/marlin-icons.patch |
pascal@17820 | 26 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 | 27 sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala |
pascal@17820 | 28 sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala |
pascal@15721 | 29 |
pascal@15721 | 30 mkdir build && cd build && |
pascal@15721 | 31 cmake .. -DCMAKE_INSTALL_PREFIX=/usr && |
pascal@15721 | 32 make && |
pascal@15721 | 33 make DESTDIR=$install install |
pascal@15721 | 34 } |
pascal@15721 | 35 |
al@20456 | 36 genpkg_rules() { |
al@20456 | 37 case $PACKAGE in |
al@20456 | 38 marlin) |
al@20456 | 39 mkdir -p \ |
al@20456 | 40 $fs/usr/bin \ |
al@20456 | 41 $fs/usr/lib \ |
al@20456 | 42 $fs/usr/share/locale |
al@20456 | 43 cp -a $install/usr/bin $fs/usr |
al@20456 | 44 cp -a $install/usr/lib/marlin $fs/usr/lib |
al@20456 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20456 | 46 cp -a $install/usr/share/applications $fs/usr/share |
al@20456 | 47 cp -a $install/usr/share/dbus* $fs/usr/share |
al@20456 | 48 cp -a $install/usr/share/glib* $fs/usr/share |
al@20456 | 49 cp -a $install/usr/share/icons $fs/usr/share |
al@20456 | 50 cp -a $install/usr/share/marlin $fs/usr/share |
al@20456 | 51 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15721 | 52 |
al@20456 | 53 # localization |
al@20456 | 54 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@20456 | 55 for lang in $LOCALE_PACK; do |
al@20456 | 56 langf=$install/usr/share/locale/$lang |
al@20456 | 57 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
al@20456 | 58 done |
pascal@15721 | 59 |
al@20456 | 60 # icons |
al@20456 | 61 mkdir -p $fs/usr/share/icons/hicolor/16x16 |
al@20456 | 62 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16 |
al@20456 | 63 cp -a $stuff/marlin.png $fs/usr/share/pixmaps |
al@20456 | 64 DEPENDS="dbus-glib gtk+3 libgee libnotify-gtk3 libsqlite3 varka \ |
al@20456 | 65 dconf" |
al@20456 | 66 SUGGESTED="tumbler ffmpegthumbnailer granite extended-actions" |
al@20456 | 67 ;; |
al@20456 | 68 *-dev) |
al@20456 | 69 copy @dev |
al@20456 | 70 ;; |
al@20456 | 71 esac |
pascal@15721 | 72 } |