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

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2023-10-12 17:47:45 +08:00
parent 72ea9fe9f3
commit e90e42cb47
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST squareline-studio-1.3.2.zip 120458108 BLAKE2B 7419fb188b7a0df1714f30864224761e33283c4a0caa35e24ee63d54d2a71d0556648fb250a2c05fd104cafa82ac52ff3d775904741690e1fc29773398161695 SHA512 9cb52d0e1cd3f5ebdaa82404785c260126458b30b6fdcba37bb1d80c68844c37b4691f0d08f49e4a887c7e98c8f275e62b24f4e9e274f6d95190a0a4efa7856d

View File

@@ -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>

View File

@@ -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}"
}