# Template file for 'deployer'
# In-tree package: sources are in files/ (FILESDIR), a copy of ~/Dev/Projects/Python/deployer.
# Differences from the upstream: the config is in ~/.config/deployer (see bin/deploy) and
# history.log is in ~/.local/state/deployer.
pkgname=deployer
version=0.3.0
revision=1
create_wrksrc=yes
hostmakedepends="python3"
depends="python3 python3-textual openssh rsync"
short_desc="TUI/CLI deploy of local projects to a server over ssh + rsync"
maintainer="Das <anry.das@gmail.com>"
license="MIT"
homepage="https://git.das.org.ua/das/Das-OS"
pycompile_dirs="usr/lib/das/deployer"
python_version=3

do_install() {
	local f dir
	for f in "${FILESDIR}"/python/deployer/*.py "${FILESDIR}"/python/deployer/kinds/*.py; do
		dir=${f#"${FILESDIR}"/python/}
		vinstall "${f}" 644 "usr/lib/das/deployer/${dir%/*}"
	done
	vbin "${FILESDIR}/bin/deploy"
	vinstall "${FILESDIR}/share/deploy.toml.example" 644 usr/share/das/deployer
	vlicense "${FILESDIR}/LICENSE"
}
