#!/bin/sh
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
#    release=$(lsb_release -sc)
#    if [ -f /etc/apt/sources.list.d/sicklylife.list ]
#    then
#    	cp /etc/apt/sources.list.d/sicklylife.list /etc/apt/sources.list.d/sicklylife.list.bck
#    fi
#    echo "deb http://ppa.launchpad.net/sicklylife/ppa/ubuntu $release main" > /etc/apt/sources.list.d/sicklylife.list
#    echo "deb-src http://ppa.launchpad.net/sicklylife/ppa/ubuntu $release main" >> /etc/apt/sources.list.d/sicklylife.list
#
#    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5C30E062

    add-apt-repository -y ppa:sicklylife/ppa
    apt update
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
