summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-02-25 18:59:57 +0100
committertnut <thierryn1 at hispeed dot ch>2010-02-25 18:59:57 +0100
commit0c18214dce5960e88730ff5cac5c9a8c13712776 (patch)
tree25bbaf42343400139a2ea8a2014feda5fe6e75fb
parentccd37b2fbdaa4b82bff24b40723f2380f74f37d6 (diff)
downloadnutyx-extra-0c18214dce5960e88730ff5cac5c9a8c13712776.tar.gz
nutyx-extra-0c18214dce5960e88730ff5cac5c9a8c13712776.tar.bz2
nutyx-extra-0c18214dce5960e88730ff5cac5c9a8c13712776.tar.xz
nutyx-extra-0c18214dce5960e88730ff5cac5c9a8c13712776.zip
Maj cover-thumbnailer#0.7-1, merci FLOZz
-rw-r--r--extra/cover-thumbnailer/Pkgfile52
-rw-r--r--extra/cover-thumbnailer/post-install24
2 files changed, 52 insertions, 24 deletions
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
+
+
+
+