install binary codecs via maintainer scripts

Bug #1363886 reported by djcj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mplayer2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Can you let the mplayer specific binary codecs automatically install via maintainer scripts?

mplayer.postinst:
#!/bin/sh

set -e

case "$1" in
    install|configure|upgrade)
    /usr/share/mplayer/binary_codecs.sh install
    ;;
    abort-upgrade)
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0

mplayer.prerm:
#!/bin/sh

set -e

DIR=/usr/lib/codecs
if [ -d $DIR ] && [ "$(ls -A $DIR)" ]; then
    /usr/share/mplayer/binary_codecs.sh uninstall
fi

#DEBHELPER#

exit 0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.