shared-mime-info stable port information

Package: shared-mime-info
Version: 1.0
Revision: 1
Depends: <<
base-files,
dpkg-base-files,
glib2-shlibs (>= 2.22.0-1),
libxml2-shlibs (>= 2.7.8-1),
pkgconfig (>= 0.23),
xdg-base
<<
BuildDepends: <<
fink (>= 0.32),
gettext-bin,
gettext-tools (>= 0.17-1),
glib2-dev (>= 2.22.0-1),
intltool40,
libiconv-bin,
libxml2 (>= 2.7.8-1),
libxml2-bin (>= 2.7.8-1),
pkgconfig (>= 0.23)
<<
Source: http://freedesktop.org/~hadess/%n-%v.tar.xz
Source-MD5: 901b7977dbb2b71d12d30d4d8fb97028
ConfigureParams: --disable-update-mimedb --mandir=%p/share/man --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
InstallScript: <<
make -j1 install DESTDIR=%d
./update-mime-database %i/share/mime
<<
#NB: Make sure update-mime-database is installed at %p/bin, because
#many other packages hard-code that path!

DocFiles: COPYING ChangeLog po/ChangeLog:ChangeLog.po HACKING NEWS README
PostInstScript: <<
%p/bin/update-mime-database %p/share/mime
<<
Description: Shared MIME System
License: GPL
Maintainer: The Gnome Core Team
DescPort: <<
Modified by Michele Garoche.
<<
DescPackaging: <<
Create initial cache, which is then overwritten at install-time and
in other packages' PostInst. By having the cache files belong to %N,
dpkg will refuse to install a package that has accidentally run the
update at build-time instead of deferring until pkg install.
<<
DescUsage: <<
Packages that install %p/share/mime* items should make sure
they do *not* run update-mime-database as part of their build
process. There is often a --disable-update-mimedb or similar
./configure flag. Then in PostInstScript and PostRmScript,
they *do* need to run update-mime-database in order to cache
the package's data, for example:

PostInstScript: <<
. %p/bin/init.sh
%p/bin/update-mime-database %p/share/mime >/dev/null
<<
PostRmScript: <<
. %p/bin/init.sh
%p/bin/update-mime-database %p/share/mime >/dev/null
<<

Remember to have Depends:shared-mime-info there too.
If you Depends:dpkg-base-files, you can omit the
. %p/bin/init.sh
lines in those scripts.
<<
Homepage: http://freedesktop.org/wiki/Software/shared-mime-info