# HG changeset patch # User Christophe Lincoln # Date 1209063794 -7200 # Node ID 6db4f9cb4207d4d5c32ae8f5b9806e3b9df8178a # Parent 001845e11b152bc6880fe1d173a4c748abd7bd06 obconf: update-mime-info and set name diff -r 001845e11b15 -r 6db4f9cb4207 obconf/receipt --- a/obconf/receipt Thu Apr 24 16:36:30 2008 +0000 +++ b/obconf/receipt Thu Apr 24 21:03:14 2008 +0200 @@ -28,5 +28,13 @@ mkdir -p $fs/usr/share cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/share/obconf $fs/usr/share - cp -a $_pkg/usr/share/mime $fs/usr/share + cp -a stuff/mime $fs/usr/share } + +# Update mime database. +post_install() +{ + local root + root=$1 + update-mime-database $root/usr/share/mime || continue +} diff -r 001845e11b15 -r 6db4f9cb4207 obconf/stuff/mime/packages/obconf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/obconf/stuff/mime/packages/obconf.xml Thu Apr 24 21:03:14 2008 +0200 @@ -0,0 +1,11 @@ + + + + openbox theme archive + openbox theme archive + archive de theme openbox + openbox 佈景主題存檔 + + + + diff -r 001845e11b15 -r 6db4f9cb4207 shared-mime-info/receipt --- a/shared-mime-info/receipt Thu Apr 24 16:36:30 2008 +0000 +++ b/shared-mime-info/receipt Thu Apr 24 21:03:14 2008 +0200 @@ -26,14 +26,19 @@ genpkg_rules() { mkdir -p $fs/usr/share/locale - cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/share/mime $fs/usr/share - cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale - strip -s $fs/usr/bin/* # Put pkgconfig *.pc file, since we are not doing # a -dev pkg for one tiny file. mkdir -p $fs/usr/lib cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib } + +# Update mime database. +post_install() +{ + local root + root=$1 + update-mime-database $root/usr/share/mime || continue +}