wok-6.x annotate marlin/receipt @ rev 17104
Add libsdl2 (thanks necrophcodr)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 30 14:16:28 2014 +0000 (2014-08-30) |
parents | |
children | b306abf02078 |
rev | line source |
---|---|
pascal@15721 | 1 # SliTaz package receipt. |
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" |
pascal@15721 | 10 BRANCH="879" |
pascal@15721 | 11 TARBALL="$PACKAGE-$BRANCH.tar.bz2" |
pascal@15721 | 12 WGET_URL="bzr|lp:marlin" |
pascal@15721 | 13 |
pascal@15721 | 14 DEPENDS="dbus-glib gtk+3 libgee libnotify-gtk3 libsqlite varka dconf" |
pascal@15721 | 15 SUGGESTED="tumbler ffmpegthumbnailer granite extended-actions" |
pascal@15721 | 16 BUILD_DEPENDS="bazaar cmake vala varka-dev gtk+3-dev libgee-dev sqlite-dev \ |
pascal@15721 | 17 dbus-glib-dev libnotify-gtk3-dev dconf-dev tumbler-dev ffmpegthumbnailer-dev \ |
pascal@15721 | 18 granite-dev" |
pascal@15721 | 19 |
pascal@15721 | 20 # Rules to configure and make the package. |
pascal@15721 | 21 compile_rules() |
pascal@15721 | 22 { |
pascal@15721 | 23 # gee-1.0 is old while gee-0.8 is latest ;) |
pascal@15721 | 24 sed -i 's|gee-1.0|gee-0.8|g' $(grep -l gee-1.0 $(find . -type f)) |
pascal@15721 | 25 |
pascal@15721 | 26 patch -p1 < $stuff/marlin-0.5.patch |
pascal@15721 | 27 patch -p1 < $stuff/marlin-icons.patch |
pascal@15721 | 28 |
pascal@15721 | 29 mkdir build && cd build && |
pascal@15721 | 30 cmake .. -DCMAKE_INSTALL_PREFIX=/usr && |
pascal@15721 | 31 make && |
pascal@15721 | 32 make DESTDIR=$install install |
pascal@15721 | 33 } |
pascal@15721 | 34 |
pascal@15721 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 36 genpkg_rules() |
pascal@15721 | 37 { |
pascal@15721 | 38 mkdir -p \ |
pascal@15721 | 39 $fs/usr/bin \ |
pascal@15721 | 40 $fs/usr/lib \ |
pascal@15721 | 41 $fs/usr/share/locale |
pascal@15721 | 42 cp -a $install/usr/bin $fs/usr |
pascal@15721 | 43 cp -a $install/usr/lib/marlin $fs/usr/lib |
pascal@15721 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15721 | 45 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15721 | 46 cp -a $install/usr/share/dbus* $fs/usr/share |
pascal@15721 | 47 cp -a $install/usr/share/glib* $fs/usr/share |
pascal@15721 | 48 cp -a $install/usr/share/icons $fs/usr/share |
pascal@15721 | 49 cp -a $install/usr/share/marlin $fs/usr/share |
pascal@15721 | 50 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15721 | 51 |
pascal@15721 | 52 # localization |
pascal@15721 | 53 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pascal@15721 | 54 for lang in $LOCALE_PACK; do |
pascal@15721 | 55 langf=$install/usr/share/locale/$lang |
pascal@15721 | 56 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
pascal@15721 | 57 done |
pascal@15721 | 58 |
pascal@15721 | 59 # icons |
pascal@15721 | 60 mkdir -p $fs/usr/share/icons/hicolor/16x16 |
pascal@15721 | 61 cp -a $stuff/apps $fs/usr/share/icons/hicolor/16x16 |
pascal@15721 | 62 cp -a $stuff/marlin.png $fs/usr/share/pixmaps |
pascal@15721 | 63 } |