# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../mime-support/mime-support.conf
# Copyright (C) 2009 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---

makeopt=
makeinstopt=

libdir="$libdir/mime"

hook_add premake 5 "mime_install"
mime_install() {
	mkdir -p "$root$libdir/packages"
	mkdir -p $root$mandir/man{1,5,8}

	install -m 644 mime.types		"$root$sysconfdir"
	install -m 644 mailcap.order		"$root$sysconfdir"
	install -m 644 mailcap.man		"$root$mandir/man5/mailcap.5"
	install -m 644 mailcap.order.man	"$root$mandir/man5/mailcap.order.5"
	install -m 644 update-mime.man		"$root$mandir/man8/update-mime.8"
	install -m 644 run-mailcap.man		"$root$mandir/man1/run-mailcap.1"
	install -m 755 run-mailcap		"$root$bindir"
	install -m 755 update-mime		"$root$sbindir"
	install -m 644 debian/README		"$root$docdir/copyright"
	install -m 644 mailcap			"$root$libdir"
	install -m 755 debian-view		"$root$libdir"
	install -m 755 playaudio		"$root$libdir"
	install -m 755 playdsp			"$root$libdir"
	install -m 644 mailcap.entries		"$root$libdir/packages/mime-support"
}