From 0c18214dce5960e88730ff5cac5c9a8c13712776 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 25 Feb 2010 18:59:57 +0100 Subject: Maj cover-thumbnailer#0.7-1, merci FLOZz --- extra/cover-thumbnailer/Pkgfile | 52 +++++++++++++++++++----------------- extra/cover-thumbnailer/post-install | 24 +++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) create mode 100644 extra/cover-thumbnailer/post-install diff --git a/extra/cover-thumbnailer/Pkgfile b/extra/cover-thumbnailer/Pkgfile index f94dc7709..7e2eb1861 100644 --- a/extra/cover-thumbnailer/Pkgfile +++ b/extra/cover-thumbnailer/Pkgfile @@ -1,33 +1,37 @@ -# Description:afficher les pochettes des albums de musique dans nautilus -# URL: http://blog.sckyzo.com/2010/01/15/cover-thumbnailer-de-meilleures-miniatures-dans-nautilus/ +# Description: Affiche les pochettes des albums de musique dans nautilus et plus... +# URL: http://software.flogisoft.com/cover-thumbnailer/ # Maintainer: NuTyX core team -# Packager: fanch -# Depends on: pil,python,pygtk,gconf +# Packager: FLOZz +# Depends on: python, pil, pygtk, gconf, gettext name=cover-thumbnailer -version=0.6 +version=0.7 release=1 -source=(http://download.flogisoft.com/files/Software/Cover_thumbnailer/cover-thumbnailer_0.6_all.tar.gz) +source=(http://download.flogisoft.com/files/Software/Cover_thumbnailer/${name}_${version}_src.tar.gz) build() { - cd cover-thumbnailer_0.6_all - mkdir -p $PKG/usr/share/{locale/fr/LC_MESSAGES,cover-thumbnailer,man/man1} - mkdir -p $PKG/usr/bin + cd $name-$version + #BUILD + msgfmt ./locale/fr.po -o ./locale/fr.mo - cp -a share/* $PKG/usr/share/cover-thumbnailer/ - chmod -Rv 644 $PKG/usr/share/cover-thumbnailer/ - chmod -v 755 $PKG/usr/share/cover-thumbnailer - cp -a man/*.1 $PKG/usr/share/man/man1/ - chmod -v 644 $PKG/usr/share/man/man1/* - cp locale/fr/LC_MESSAGES/cover-thumbnailer-gui.mo \ - $PKG/usr/share/locale/fr/LC_MESSAGES/ - chmod -v 644 $PKG/usr/share/locale/fr/LC_MESSAGES/cover-thumbnailer-gui.mo - - for i in cover-thumbnailer.py cover-thumbnailer-gui.py - do - cp $i $PKG/usr/bin/ - chmod -v 755 $PKG/usr/bin/$i - done - chown -R root:root $PKG + #INSTALL + #bin + mkdir -p $PKG/{usr/{bin,share/{cover-thumbnailer,man/man1,locale/fr/LC_MESSAGES,applications,doc/cover-thumbnailer}},etc/gconf/schemas/} + cp ./cover-thumbnailer.py $PKG/usr/bin/cover-thumbnailer + cp ./cover-thumbnailer-gui.py $PKG/usr/bin/cover-thumbnailer-gui + chmod 755 $PKG/usr/bin/cover-thumbnailer* + #share + cp ./share/* $PKG/usr/share/cover-thumbnailer/ + #man + cp ./man/* $PKG/usr/share/man/man1/applications/ + #.desktop + cp ./freedesktop/* $PKG/usr/share/ + #locale + cp ./locale/fr.mo $PKG/usr/share/locale/fr/LC_MESSAGES/cover-thumbnailer-gui.mo + #doc + cp ./README $PKG/usr/share/doc/cover-thumbnailer/ + cp ./COPYING $PKG/usr/share/doc/cover-thumbnailer/ + #schemas + mv $PKG/usr/share/cover-thumbnailer/cover-thumbnailer.schema $PKG/etc/gconf/schemas/cover-thumbnailer.schemas } diff --git a/extra/cover-thumbnailer/post-install b/extra/cover-thumbnailer/post-install new file mode 100644 index 000000000..d345c338e --- /dev/null +++ b/extra/cover-thumbnailer/post-install @@ -0,0 +1,24 @@ +#!/bin/bash + +port=cover-thumbnailer + +# gconf schemas +SCHEMAS="`pkginfo -l $port | grep etc/gconf/schemas/.*\.schemas$`" + +for SCHEMA in $SCHEMAS +do + export GCONF_CONFIG_SOURCE=`$GNOME_PREFIX/bin/gconftool-2 --get-default-source` + $GNOME_PREFIX/bin/gconftool-2 --makefile-install-rule /$SCHEMA > /dev/null +done + +# reload gconf caches +if [ ! -z "`pidof gconfd-2`" ] +then + killall -HUP gconfd-2 > /dev/null +fi + +# End of file + + + + -- cgit v1.2.3-54-g00ecf