orange: fix desktop icon

requested by Kiri
This commit is contained in:
Pekka Ristola 2023-09-04 17:35:37 +03:00
parent eef6d42f83
commit 737998c1fe
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
2 changed files with 5 additions and 1 deletions

View file

@ -47,7 +47,9 @@ prepare() {
# create execute file for /ure/bin
printf '#!/usr/bin/sh\nexec python -m Orange.canvas' > ${pkgname}
# fix desktop.entry
sed -i 's/orange-canvas/orange/g' ${srcdir}/${_module}-${pkgver}/distribute/orange-canvas.desktop
sed -e 's/Exec=orange-canvas/Exec=orange/' \
-e 's|Icon=orange-canvas|Icon=/usr/share/icons/'"$pkgname"'.ico|' \
-i "$_module-$pkgver/distribute/orange-canvas.desktop"
}
build() {

View file

@ -11,6 +11,8 @@ update_on:
- source: pypi
pypi: Orange3
- alias: python
- source: manual
manual: 1
repo_depends:
- python-orange-canvas-core
- python-baycomp