Files
guru/dev-embedded/squareline-studio/squareline-studio-1.6.2-r1.ebuild
T
Huang Rui 297ad7a002 dev-embedded/squareline-studio: add 1.6.2-r1, drop 1.6.2
The bundled binaries and plugins link against gtk3, pango, wayland,
cairo, dbus, libX11 and glib, which the ebuild never declared.

Closes: https://bugs.gentoo.org/982630
Signed-off-by: Huang Rui <vowstar@gmail.com>
2026-09-19 04:30:12 -07:00

53 lines
1.2 KiB
Bash

# Copyright 1999-2026 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
"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0/${PV}"
KEYWORDS="-* ~amd64"
RESTRICT="mirror bindist"
BDEPEND="
app-arch/unzip
"
RDEPEND="
dev-libs/glib:2
dev-libs/wayland
sys-apps/dbus
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/pango
"
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}"
}