# Lara Maia <dev@lara.click> 2014~2016
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Create a backup of your config files in tree format"
HOMEPAGE="https://github.com/calendulish/backup-conf"
LICENSE="GPL-3"

SRC_URI="https://github.com/calendulish/$PN/archive/v$PV.tar.gz"

KEYWORDS="~amd64 ~ia64 ~x86 ~arm"

SLOT=0
IUSE="git sudo"
RESTRICT="binchecks primaryuri"

RDEPEND="sys-devel/gettext
		 sys-apps/util-linux
		 git? ( dev-vcs/git )
		 sudo? ( app-admin/sudo )"
DEPEND="app-arch/tar"

pkg_postinst() {
	ewarn "Example of configuration file installed on"
	ewarn "/usr/share/backup-conf/backup-conf.conf.example"
	ewarn 'copy to $XDG_CONFIG_HOME/backup-conf.conf or'
	ewarn "/etc/backup-conf.conf, and edit with you files/directories."
}