mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
dev-embedded/squareline-studio: add 1.6.1
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST squareline-studio-1.6.0.zip 178390461 BLAKE2B 9b6f16bfba7a0f0b12884208842306e84c5ae873fde91c65624c975a29f2166cb7aa4e2f774e266f7ebde593c9bd5c549e3717cf6903bd72a2eb74652ed34a28 SHA512 1c442bd1d92935b0154089196b7f7069c5aacce055c9e2b121a4cee55483b0567146d97d932fdd7e9b993212881f72f80e29754585e14acdb4f2429593105e2d
|
||||
DIST squareline-studio-1.6.1.zip 180438276 BLAKE2B 65d8362ca4b4496489702b63e5157237a0aa5b61f15be784d9ccd4647b78340f8f9693828219f5e101a33d65c859b658a348bef81c268aa0e1a104e04b4cafb8 SHA512 de09dfcecee3a4f9a00cc2507fc6faab9d8cb0c6e439fd8186adaff2fbf72c4f591d520dee1e0204552addb6454c694f6e74b1d30e88d8b88c4f0fe5ff0170a0
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# 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"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
"
|
||||
|
||||
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}"
|
||||
}
|
||||
Reference in New Issue
Block a user