# Template file for 'iamb'
pkgname=iamb
version=0.0.10
revision=2
build_style=cargo
configure_args="--no-default-features --features=native-tls,desktop"
hostmakedepends="pkg-config"
makedepends="oniguruma-devel sqlite-devel openssl-devel"
short_desc="Matrix client for Vim addicts"
maintainer="Bnyro <bnyro@tutanota.com>"
license="Apache-2.0"
homepage="https://iamb.chat/"
changelog="https://github.com/ulyssa/iamb/releases"
distfiles="https://github.com/ulyssa/iamb/archive/refs/tags/v${version}.tar.gz"
checksum=f628cfbd9eba9e8881902b970e9432fec815044ec9bea901a8562ea3ef8f4615

post_install() {
	vinstall iamb.desktop 644 usr/share/applications
	vinstall docs/iamb-256x256.png 644 usr/share/icons/hicolor/256x256/apps/iamb.png
	vinstall docs/iamb-512x512.png 644 usr/share/icons/hicolor/512x512/apps/iamb.png
	vinstall docs/iamb.svg 644 usr/share/icons/hicolor/scalable/apps/iamb.svg

	vsed -i docs/iamb.5 -e 's#/usr/share/iamb/config.example.toml#/usr/share/examples/iamb/config.toml#'
	vman docs/iamb.1
	vman docs/iamb.5

	vsconf config.example.toml config.toml
}
