# Template file for 'wiki-tui'
pkgname=wiki-tui
version=0.8.2
revision=3
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Simple and easy to use Wikipedia Text User Interface"
maintainer="ethamck <ethamck@proton.me>"
license="MIT"
homepage="https://builditluc.github.io/wiki-tui/"
changelog="https://github.com/Builditluc/wiki-tui/raw/main/CHANGELOG.md"
distfiles="https://github.com/Builditluc/wiki-tui/archive/refs/tags/v${version}.tar.gz"
checksum=408bc8eb928e3a9b8d0c59ac2aa160c101b1e978e1a95eb751585f54087dfe62

post_patch() {
	cargo update --package time@0.3.22 --precise 0.3.35
}

post_install() {
	vlicense LICENSE

	vcopy icons/ usr/share/icons/
	vinstall wiki-tui.desktop 644 usr/share/applications
}
