public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/squareline-studio/
@ 2023-10-12  9:47 Rui Huang
  0 siblings, 0 replies; only message in thread
From: Rui Huang @ 2023-10-12  9:47 UTC (permalink / raw
  To: gentoo-commits

commit:     e90e42cb475ad0bae1821a36ec0deb1a96ccd477
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Thu Oct 12 09:47:45 2023 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Thu Oct 12 09:47:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e90e42cb

dev-embedded/squareline-studio: new package, add 1.3.2

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 dev-embedded/squareline-studio/Manifest            |  1 +
 dev-embedded/squareline-studio/metadata.xml        | 38 +++++++++++++++++++
 .../squareline-studio-1.3.2.ebuild                 | 43 ++++++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/dev-embedded/squareline-studio/Manifest b/dev-embedded/squareline-studio/Manifest
new file mode 100644
index 0000000000..2e9055bff9
--- /dev/null
+++ b/dev-embedded/squareline-studio/Manifest
@@ -0,0 +1 @@
+DIST squareline-studio-1.3.2.zip 120458108 BLAKE2B 7419fb188b7a0df1714f30864224761e33283c4a0caa35e24ee63d54d2a71d0556648fb250a2c05fd104cafa82ac52ff3d775904741690e1fc29773398161695 SHA512 9cb52d0e1cd3f5ebdaa82404785c260126458b30b6fdcba37bb1d80c68844c37b4691f0d08f49e4a887c7e98c8f275e62b24f4e9e274f6d95190a0a4efa7856d

diff --git a/dev-embedded/squareline-studio/metadata.xml b/dev-embedded/squareline-studio/metadata.xml
new file mode 100644
index 0000000000..572adf1125
--- /dev/null
+++ b/dev-embedded/squareline-studio/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>vowstar@gmail.com</email>
+		<name>Huang Rui</name>
+	</maintainer>
+	<longdescription lang="en">
+		Next generation UI editor for individuals and professionals to design
+		and develop beautiful UIs for your embedded devices quickly and easily.
+		SquareLine Studio is specially developed for designers so as to
+		implement their plans in the most efficient way and to take the most off
+		the programmers' shoulders. SquareLine Studio uses the fully open source
+		LVGL UI library which makes it possible to control the whole project
+		because there is no Lib file generated code set. Meanwhile, it gives
+		great performance on low performance devices.
+		SquareLine Studio supports exporting C and MicroPyton source code.
+		If you don't need the low level C programming, you can create your
+		project in the simplyfied version of the well-known and commonly used
+		Python scripting language, MicroPython. The advantage of MicroPython
+		compared to C programming is that it can process commands in real time.
+		For instance if we would like to add a button to the screen of a project
+		running on a device, we should send the Add button command to the system
+		so as to make the button appear immediately on the device.
+	</longdescription>
+	<longdescription lang="zh">
+		下一代的UI编辑器,适用于个人和专业人士,可以快速、轻松地为您的嵌入式设备
+		设计和开发美观的用户界面。SquareLine Studio是专门为设计师开发的,以便以
+		最高效的方式实现他们的计划,同时尽量减轻程序员的负担。SquareLine Studio
+		使用完全开源的LVGL UI库,这使得可以控制整个项目,因为不会生成Lib文件
+		编码集。同时,它在低性能的设备上表现出色。
+		SquareLine Studio支持导出C和MicroPython源代码。如果您不需要低级C编程,
+		您可以使用众所周知且常用的Python脚本语言的简化版本MicroPython创建您的
+		项目。与C编程相比,MicroPython的优势是它可以实时处理命令。例如,如果我们
+		想在运行在设备上的项目的屏幕上添加一个按钮,我们应该向系统发送添加按钮的
+		命令,以便立即在设备上显示该按钮。
+	</longdescription>
+</pkgmetadata>

diff --git a/dev-embedded/squareline-studio/squareline-studio-1.3.2.ebuild b/dev-embedded/squareline-studio/squareline-studio-1.3.2.ebuild
new file mode 100644
index 0000000000..bbfd0363e0
--- /dev/null
+++ b/dev-embedded/squareline-studio/squareline-studio-1.3.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+MY_PV="$(ver_rs 1- '_')"
+
+inherit desktop xdg
+
+DESCRIPTION="Visual drag-and-drop UI editor for LVGL"
+HOMEPAGE="https://squareline.io"
+SRC_URI="
+	https://static.squareline.io/downloads/SquareLine_Studio_Linux_v${MY_PV}.zip -> ${P}.zip
+"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="-* ~amd64"
+SLOT="0/${PV}"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND="
+	app-arch/unzip
+"
+
+S="${WORKDIR}"
+QA_PREBUILT="*"
+
+src_install() {
+	# desktop entry
+	sed "s|__folder__|/opt/${P}|g" squareline_studio.desktop.template > "${P}.desktop" || die
+	# install
+	insinto "/opt/${P}"
+	doins -r *
+	for x in $(find .) ; do
+		# Fix python script permissions
+		[[ "${x: -3}" == ".py" ]] && fperms 0755 "/opt/${P}/${x}"
+		# Use \x7fELF header to separate ELF executables and libraries
+		[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] && fperms 0755 "/opt/${P}/${x}"
+	done
+	domenu "${P}.desktop"
+	dosym ../../opt/"${P}"/"SquareLine_Studio.x86_64" /usr/bin/"${P}"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-12  9:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-12  9:47 [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/squareline-studio/ Rui Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox