Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: lapce 0.2.5 #40970

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions srcpkgs/lapce/patches/desktop-icon.patch
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions srcpkgs/lapce/patches/tree-sitter-julia.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lapce-core/Cargo.toml b/lapce-core/Cargo.toml
index ea788c0e..fa99d80b 100644
--- a/lapce-core/Cargo.toml
+++ b/lapce-core/Cargo.toml
@@ -50,7 +50,7 @@ tree-sitter-javascript = { version = "0.20.0", optional = true }
# new version cannot be published on crates.io - https://github.com/tree-sitter/tree-sitter-json/issues/21
# tree-sitter-json = { version = "0.19.0", optional = true }
tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json.git", rev = "11e2cc12d9b267766fb11a06e52952792fd8e3f0", optional = true }
-tree-sitter-julia = { git = "https://github.com/varlad/tree-sitter-julia", branch = "master", optional = true }
+tree-sitter-julia = { git = "https://github.com/varlad/tree-sitter-julia", rev = "09aba7f2e9149148cd42b9af17f52adbc9a5da90", optional = true }
tree-sitter-kotlin = { git = "https://github.com/fwcd/tree-sitter-kotlin", branch = "main", optional = true }
tree-sitter-latex = { git = "https://github.com/latex-lsp/tree-sitter-latex", branch = "master", optional = true }
tree-sitter-lua = { git = "https://github.com/syntacti/tree-sitter-lua", branch = "main", optional = true }
30 changes: 30 additions & 0 deletions srcpkgs/lapce/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Template file for 'lapce'
pkgname=lapce
version=0.2.5
revision=1
archs="aarch64 x86_64" # limited by rust/cargo
build_style=cargo
hostmakedepends="cmake 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=3b8357653eda77b2c85306ba9f7202e539987ada4a7b5be2018b142bb23be7e4

do_install() {
: ${make_cmd:=cargo auditable}
: ${make_install_args:=--path .}

${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--offline --locked ${configure_args} ${make_install_args}

rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json

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 changes: 2 additions & 0 deletions srcpkgs/lapce/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site="https://github.com/lapce/lapce/releases"
pattern="\bv\K(\d+\.\d+\.\d+)\b"