# -*- sh -*-
# This file is used as a way to replace text in certain files. Main reason is
# to get shlib information for the different ffmpeg libraries used by
# chromium-browser.

case "$1" in
    LIBPULSE_DEPENDS)
        LIBPULSE_DEPENDS=$(cat /var/lib/dpkg/info/libpulse0.shlibs | \
          head -n 1 | \
          sed 's/^[^[:space:]]\+\?[[:space:]]\+\?[^[:space:]]\+\?[[:space:]]\+\?\(.*\)$/\1/')
        printf "$LIBPULSE_DEPENDS"
        ;;
    LIBPORTAUDIO_DEPENDS)
        LIBPORTAUDIO_DEPENDS=$(cat /var/lib/dpkg/info/libportaudio*.shlibs | \
          cut -d ' ' -f 3)
        printf "$LIBPORTAUDIO_DEPENDS"
        ;;
esac

exit 0
