# Template file for 'publisher'
# In-tree package: sources are in files/ (FILESDIR), a copy of ~/Dev/Projects/Python/publisher.
# Differences from the upstream: the config is in ~/.config/publisher (see bin/publish) and
# history.log is in ~/.local/state/publisher.
pkgname=publisher
version=0.3.1
revision=1
create_wrksrc=yes
hostmakedepends="python3"
depends="python3 python3-textual openssh rsync"
short_desc="TUI/CLI publishing of apk, AppImage, archives and binaries 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/publisher"
python_version=3

do_install() {
	local f
	for f in "${FILESDIR}"/python/publisher/*.py; do
		vinstall "${f}" 644 usr/lib/das/publisher/publisher
	done
	vbin "${FILESDIR}/bin/publish"
	vinstall "${FILESDIR}/share/publish.toml.example" 644 usr/share/das/publisher
	vlicense "${FILESDIR}/LICENSE"
}
