# Template file for 'lapce'
pkgname=lapce
version=0.4.5
revision=1
archs="aarch64* x86_64*" # wasmer-vm crate fails to build (unsupported platform)
build_style=cargo
hostmakedepends="pkg-config"
makedepends="fontconfig-devel gtk+3-devel openssl-devel libgit2-1.9-devel"
short_desc="Lightning-fast and powerful code editor"
maintainer="Saksham <voidisnull@duck.com>"
license="Apache-2.0"
homepage="https://lapce.dev/"
changelog="https://github.com/lapce/lapce/releases"
distfiles="https://github.com/lapce/lapce/archive/refs/tags/v${version}.tar.gz"
checksum=e5e9df702c2f108da57b8a5232d797c582171c0523a0ac381947058ec667423c

post_install() {
	vinstall extra/linux/dev.lapce.lapce.desktop 644 usr/share/applications/
	vinstall extra/linux/dev.lapce.lapce.metainfo.xml 644 usr/share/appdata/
	vinstall extra/images/logo_color.svg 644 usr/share/icons/hicolor/scalable/apps/ dev.lapce.lapce.svg
}
