# Template file for 'tio'
pkgname=tio
version=3.8
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="libglib-devel lua53-devel"
short_desc="Simple serial device I/O tool"
maintainer="0x5c <dev@0x5c.io>"
license="GPL-2.0-or-later"
homepage="https://github.com/tio/tio"
changelog="https://github.com/tio/tio/raw/master/NEWS"
distfiles="https://github.com/tio/tio/archive/refs/tags/v${version}.tar.gz"
checksum=c0e68c96f28a5b4daaf94eba31b066853efd1f1ea396c75a6cc168f2e95cdea3

post_install() {
	vcompletion "build/src/bash-completion/tio" bash tio
	vsconf examples/config/config
	vcopy examples/lua usr/share/examples/tio
}
