This repository was archived by the owner on Nov 13, 2022. It is now read-only.
File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ check() {
38
38
package () {
39
39
cd " $pkgname -$pkgver "
40
40
python setup.py install --root=" $pkgdir "
41
+ install -vDm644 -t " ${pkgdir} /usr/share/pixmaps" plover/assets/plover.png
42
+ install -vDm644 -t " ${pkgdir} /usr/share/applications" application/plover.desktop
41
43
chmod og+rX -R " $pkgdir "
42
44
}
43
45
Original file line number Diff line number Diff line change @@ -121,11 +121,9 @@ python='appdir_python'
121
121
# Install Plover and dependencies.
122
122
bootstrap_dist " $wheel "
123
123
124
- # Note: those will re-appear in their respective
125
- # locations when creating the AppImage...
126
- # ¯\_(ツ)_/¯
127
- run mv " $appdir /usr/share/applications/plover.desktop" " $appdir /plover.desktop"
128
- run mv " $appdir /usr/share/pixmaps/plover.png" " $appdir /plover.png"
124
+ # Add desktop integration.
125
+ run cp ' application/plover.desktop' " $appdir /plover.desktop"
126
+ run cp ' plover/assets/plover.png' " $appdir /plover.png"
129
127
130
128
# Trim the fat.
131
129
run " $python " -m utils.trim " $appdir " linux/appimage/blacklist.txt
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ env PYTHONPATH="$PWD/.deps" %{__python3} setup.py compile_catalog build_ui build
46
46
47
47
%install
48
48
env PYTHONPATH=" $PWD /.deps" %py3_install
49
+ install -vDm644 -t " %{buildroot}/usr/share/pixmaps" plover/assets/plover.png
50
+ install -vDm644 -t " %{buildroot}/usr/share/applications" application/plover.desktop
49
51
50
52
%check
51
53
env PYTHONPATH=" $PWD /.deps" %{__python3} setup.py test
Original file line number Diff line number Diff line change @@ -467,8 +467,4 @@ def run(self):
467
467
options = options ,
468
468
cmdclass = cmdclass ,
469
469
extras_require = extras_require ,
470
- data_files = [
471
- ('share/applications' , ['application/plover.desktop' ]),
472
- ('share/pixmaps' , ['plover/assets/plover.png' ]),
473
- ],
474
470
)
You can’t perform that action at this time.
0 commit comments