Package Details: squareline-studio 1.6.0-1

Git Clone URL: https://aur.archlinux.org/squareline-studio.git (read-only, click to copy)
Package Base: squareline-studio
Description: Visual drag-and-drop UI editor to create beautiful Graphical User Interfaces quickly and easily
Upstream URL: https://squareline.io/
Keywords: gui-editor lvgl squareline-studio
Licenses: custom
Submitter: yjun
Maintainer: khvalera
Last Packager: khvalera
Votes: 1
Popularity: 0.001426
First Submitted: 2022-02-15 11:33 (UTC)
Last Updated: 2026-02-18 19:26 (UTC)

Latest Comments

1 2 Next › Last »

yjun commented on 2025-07-15 14:56 (UTC)

@bipoexp Thanks!

bipoexp commented on 2025-07-13 21:40 (UTC) (edited on 2025-07-13 21:44 (UTC) by bipoexp)

I believe I have fixed the most recent problem, as well as preventing similar problems in the future. I tested it a few times while altering the directory layout. Full disclosure, I did use copilot for advice/suggestions. As usual the suggested commands/code were wrong, but it got this novice on the right path to the solution. Here is the contents of the 0001-Handle-changing-zip-directory-stucture.patch I generated:

From 312fab48e31dc0ec898b6f84349e16acff9ba1cf Mon Sep 17 00:00:00 2001
From: Doc <lastdoc39@gmail.com>
Date: Sun, 13 Jul 2025 17:30:15 -0400
Subject: [PATCH] Handle changing zip directory stucture

Added Prepare section to handle the directory
structure that has a history of changing. It
finds the lvgl folder to determine the base.

Altered the "cp" command to use the normalized
source directory (_source_dir) generated in
Prepare
---
 PKGBUILD | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 5c260f9..2dc205a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,17 @@ license=('custom')
 source=("https://static.squareline.io/downloads/${_pkgname}_Linux_v${pkgver//./_}.zip")
 sha256sums=('a5e3035e4d2ca1488184eae294292efa869f5eb3f8520ed68bd9c2ccf43fe7fd')

+prepare() {
+  # Packaging folder structure can change.
+  # Find lvgl to find the root of the source
+  _lvgl_path=$(find "${srcdir}" -type d -name lvgl | head -n 1)
+  export _source_dir=$(dirname "${_lvgl_path}")
+}
+
 package() {
   install -dm755 ${pkgdir}/opt/
-  cp -a ${srcdir}/${_pkgname}_Linux_v${pkgver//./_} ${pkgdir}/opt/${pkgname}
+  # Using normalized source path from _source_dir
+  cp -a "${_source_dir}" ${pkgdir}/opt/${pkgname}

   cd ${pkgdir}/opt/${pkgname}

-- 
2.50.1

chiz commented on 2025-06-26 09:02 (UTC) (edited on 2025-06-26 09:02 (UTC) by chiz)

==> 正在开始 package()...
cp: 对 '/home/chi/.cache/yay/squareline-studio/src/SquareLine_Studio_Linux_v1_5_3' 调用 stat 失败: 没有那个文件或目录
==> 错误: 在 package() 中发生一个错误。
    正在放弃...
 -> 生成时出错: squareline-studio-exit status 4

gaoyichuan commented on 2025-06-25 13:02 (UTC)

The latest version (1.5.3) zip doesn't include the extra directory now...

diff --git a/PKGBUILD b/PKGBUILD
index 5c260f9..bb86391 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,10 +10,11 @@ url="https://squareline.io/"
 license=('custom')
 source=("https://static.squareline.io/downloads/${_pkgname}_Linux_v${pkgver//./_}.zip")
 sha256sums=('a5e3035e4d2ca1488184eae294292efa869f5eb3f8520ed68bd9c2ccf43fe7fd')
+noextract=("${_pkgname}_Linux_v${pkgver//./_}.zip")

 package() {
-  install -dm755 ${pkgdir}/opt/
-  cp -a ${srcdir}/${_pkgname}_Linux_v${pkgver//./_} ${pkgdir}/opt/${pkgname}
+  install -dm755 ${pkgdir}/opt/${pkgname}
+  unzip ${_pkgname}_Linux_v${pkgver//./_}.zip -d ${pkgdir}/opt/${pkgname}

   cd ${pkgdir}/opt/${pkgname}

yjun commented on 2025-05-13 13:51 (UTC)

@Troupal @LandDownThunder Fixed.

Troupal commented on 2025-05-11 19:13 (UTC) (edited on 2025-05-11 19:13 (UTC) by Troupal)

I believe too that the SHA256SUM need to be updated !

==> Récupération des sources…
-> Téléchargement de SquareLine_Studio_Linux_v1_5_1.zip…
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100  145M  100  145M    0     0  5072k      0  0:00:29  0:00:29 --:--:-- 7151k
==> Validation des fichiers source avec sha256sums…
SquareLine_Studio_Linux_v1_5_1.zip ... ÉCHEC
==> ERREUR : Un ou plusieurs fichiers ne sont pas valides !
erreur : échec du téléchargement des sources pour 'squareline-studio-1.5.1-1':
erreur : la compilation des paquets suivants a échouée : squareline-studio-1.5.1-1

LandDownThunder commented on 2025-04-25 05:23 (UTC)

I believe the sha256sums need to be updated

==> Retrieving sources...
  -> Found SquareLine_Studio_Linux_v1_5_1.zip
==> Validating source files with sha256sums...
    SquareLine_Studio_Linux_v1_5_1.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
 -> error making: squareline-studio-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
squareline-studio - exit status 1

yjun commented on 2024-09-22 11:58 (UTC)

@tuxlife thx,fixed.

tuxlife commented on 2024-08-28 10:03 (UTC) (edited on 2024-08-28 10:08 (UTC) by tuxlife)

Unfortunately, the archive of version 1.4.2 is delivered with an extra directory level, which is why the package can no longer be built.

diff --git a/PKGBUILD b/PKGBUILD
index 3f0575f..133e2b0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,10 +14,10 @@ sha256sums=('2a5d2984727864fb969e95cca19ab883111a12a685d5b06f8cffe95d3e749a0a')
 noextract=("${_pkgname}_Linux_v${pkgver//./_}.zip")

 package() {
-  install -dm755 ${pkgdir}/opt/${pkgname}
+  install -dm755 ${pkgdir}/opt/
   # cp -a ${srcdir}/* ${pkgdir}/opt/${pkgname}
-  unzip ${_pkgname}_Linux_v${pkgver//./_}.zip -d ${pkgdir}/opt/${pkgname}
-
+  unzip ${_pkgname}_Linux_v${pkgver//./_}.zip -d ${pkgdir}/opt/
+  mv ${pkgdir}/opt/${_pkgname}_Linux_v${pkgver//./_} ${pkgdir}/opt/${pkgname}
   cd ${pkgdir}/opt/${pkgname}

   # binary

yjun commented on 2024-03-09 07:04 (UTC) (edited on 2024-03-09 07:04 (UTC) by yjun)

@konez2k thx,fixed.