wok rev 677
obconf: update-mime-info and set name
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 24 21:03:14 2008 +0200 (2008-04-24) |
parents | 001845e11b15 |
children | e16def83d60a |
files | obconf/receipt obconf/stuff/mime/packages/obconf.xml shared-mime-info/receipt |
line diff
1.1 --- a/obconf/receipt Thu Apr 24 16:36:30 2008 +0000 1.2 +++ b/obconf/receipt Thu Apr 24 21:03:14 2008 +0200 1.3 @@ -28,5 +28,13 @@ 1.4 mkdir -p $fs/usr/share 1.5 cp -a $_pkg/usr/bin $fs/usr 1.6 cp -a $_pkg/usr/share/obconf $fs/usr/share 1.7 - cp -a $_pkg/usr/share/mime $fs/usr/share 1.8 + cp -a stuff/mime $fs/usr/share 1.9 } 1.10 + 1.11 +# Update mime database. 1.12 +post_install() 1.13 +{ 1.14 + local root 1.15 + root=$1 1.16 + update-mime-database $root/usr/share/mime || continue 1.17 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/obconf/stuff/mime/packages/obconf.xml Thu Apr 24 21:03:14 2008 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +<?xml version="1.0" encoding="UTF-8"?> 2.5 +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> 2.6 + <mime-type type="application/x-openbox-theme"> 2.7 + <comment>openbox theme archive</comment> 2.8 + <comment xml:lang="en">openbox theme archive</comment> 2.9 + <comment xml:lang="en">archive de theme openbox</comment> 2.10 + <comment xml:lang="zh_TW">openbox 佈景主題存檔</comment> 2.11 + <sub-class-of type="application/x-gzip"/> 2.12 + <glob pattern="*.obt"/> 2.13 + </mime-type> 2.14 +</mime-info>
3.1 --- a/shared-mime-info/receipt Thu Apr 24 16:36:30 2008 +0000 3.2 +++ b/shared-mime-info/receipt Thu Apr 24 21:03:14 2008 +0200 3.3 @@ -26,14 +26,19 @@ 3.4 genpkg_rules() 3.5 { 3.6 mkdir -p $fs/usr/share/locale 3.7 - 3.8 cp -a $_pkg/usr/bin $fs/usr 3.9 cp -a $_pkg/usr/share/mime $fs/usr/share 3.10 - cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale 3.11 - strip -s $fs/usr/bin/* 3.12 3.13 # Put pkgconfig *.pc file, since we are not doing 3.14 # a -dev pkg for one tiny file. 3.15 mkdir -p $fs/usr/lib 3.16 cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib 3.17 } 3.18 + 3.19 +# Update mime database. 3.20 +post_install() 3.21 +{ 3.22 + local root 3.23 + root=$1 3.24 + update-mime-database $root/usr/share/mime || continue 3.25 +}