-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfigma-linux.spec
More file actions
60 lines (51 loc) · 2.86 KB
/
Copy pathfigma-linux.spec
File metadata and controls
60 lines (51 loc) · 2.86 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name: figma-linux
Version: 0.6.1
Release: 2
Summary: RPM package for figma-linux
License: GPL2.0
URL: https://github.com/Figma-Linux/%{name}
Source0: https://github.com/Figma-Linux/%{name}/releases/download/v%{version}/%{name}-%{version}.zip
Source1: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/%{name}.desktop
Source2: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/24x24.png
Source3: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/36x36.png
Source4: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/48x48.png
Source5: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/64x64.png
Source6: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/72x72.png
Source7: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/96x96.png
Source8: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/128x128.png
Source9: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/192x192.png
Source10: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/256x256.png
Source11: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/384x384.png
Source12: https://raw.githubusercontent.com/ChugunovRoman/%{name}/master/resources/icons/512x512.png
%description
RPM package for figma-linux
%install
ls -la "%{SOURCE0}"
install -d $RPM_BUILD_ROOT/opt/%{name}
install -d $RPM_BUILD_ROOT/usr/share/applications/
install -m 755 "%{SOURCE1}" $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop
for size in 24 36 48 64 72 96 128 192 256 384 512; do
install -d $RPM_BUILD_ROOT/usr/share/icons/hicolor/${size}x${size}/apps/
install -m 755 /builddir/build/SOURCES/${size}x${size}.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/${size}x${size}/apps/%{name}.png
done
unzip -q "%{SOURCE0}" -d $RPM_BUILD_ROOT/opt/%{name}
ls -la $RPM_BUILD_ROOT
ls -la $RPM_BUILD_ROOT/opt/%{name}
%post
ln -s /opt/figma-linux/figma-linux /usr/bin/figma-linux
%files
/opt/figma-linux/
/usr/share/applications/figma-linux.desktop
/usr/share/icons/hicolor/24x24/apps/figma-linux.png
/usr/share/icons/hicolor/36x36/apps/figma-linux.png
/usr/share/icons/hicolor/48x48/apps/figma-linux.png
/usr/share/icons/hicolor/64x64/apps/figma-linux.png
/usr/share/icons/hicolor/72x72/apps/figma-linux.png
/usr/share/icons/hicolor/96x96/apps/figma-linux.png
/usr/share/icons/hicolor/128x128/apps/figma-linux.png
/usr/share/icons/hicolor/192x192/apps/figma-linux.png
/usr/share/icons/hicolor/256x256/apps/figma-linux.png
/usr/share/icons/hicolor/384x384/apps/figma-linux.png
/usr/share/icons/hicolor/512x512/apps/figma-linux.png
%changelog
# let's skip this for now