new package: lapce

This commit is contained in:
Alex Lohr 2022-12-29 23:58:57 +01:00 committed by Duncan Overbruck
parent d47782d93b
commit 45f5efd705
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/extra/linux/dev.lapce.lapce.desktop b/extra/linux/dev.lapce.lapce.desktop
index 83f9c5cc..8d81cd87 100644
--- a/extra/linux/dev.lapce.lapce.desktop
+++ b/extra/linux/dev.lapce.lapce.desktop
@@ -6,6 +6,6 @@ Name=Lapce
Comment=Lightning-fast and powerful code editor written in Rust
Categories=Development;IDE;
-Icon=dev.lapce.lapce
+Icon=/usr/share/icons/hicolor/scalable/apps/dev.lapce.lapce.svg
Exec=lapce
Terminal=false

21
srcpkgs/lapce/template Normal file
View File

@ -0,0 +1,21 @@
# Template file for 'lapce'
pkgname=lapce
version=0.2.8
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"
short_desc="Lightning-fast and powerful code editor"
maintainer="Alex Lohr <alexthkloss@web.de>"
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=650b81c3dfbd727101111de60c208c191258fb27a96b1cec392afa7c0579a6ff
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
}

2
srcpkgs/lapce/update Normal file
View File

@ -0,0 +1,2 @@
site="https://github.com/lapce/lapce/releases"
pattern="\bv\K(\d+\.\d+\.\d+)\b"