blob: 3f0575f9f1ddb127271d50b84baabad91352ecac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
pkgname=squareline-studio
_pkgname=SquareLine_Studio
pkgver=1.4.2
pkgrel=1
pkgdesc="Visual drag-and-drop UI editor to create beautiful Graphical User Interfaces quickly and easily"
arch=('x86_64')
url="https://squareline.io/"
license=('custom')
source=("https://static.squareline.io/downloads/${_pkgname}_Linux_v${pkgver//./_}.zip")
makedepends=("unzip")
sha256sums=('2a5d2984727864fb969e95cca19ab883111a12a685d5b06f8cffe95d3e749a0a')
noextract=("${_pkgname}_Linux_v${pkgver//./_}.zip")
package() {
install -dm755 ${pkgdir}/opt/${pkgname}
# cp -a ${srcdir}/* ${pkgdir}/opt/${pkgname}
unzip ${_pkgname}_Linux_v${pkgver//./_}.zip -d ${pkgdir}/opt/${pkgname}
cd ${pkgdir}/opt/${pkgname}
# binary
chmod 755 SquareLine_Studio.x86_64 lvgl/lv_font_conv-linux
find lvgl/ -type d -name 'lvgl_v*' -exec chmod 755 {}/server/micropython {}/server/server.py \;
# desktop entry
sed "s|__folder__|/opt/${pkgname}|g" squareline_studio.desktop.template > ${pkgname}.desktop
install -Dm644 ${pkgname}.desktop -t ${pkgdir}/usr/share/applications
}
# vim: set sw=2 ts=2 et:
|