[Pkg-privacy-commits] [Git][pkg-privacy-team/onionshare][debian/sid] 2 commits: Install desktp/appmetadata at expected places.
Hefee (@hefee)
hefee at debian.org
Tue Jun 6 20:21:21 BST 2023
Hefee pushed to branch debian/sid at Privacy Maintainers / onionshare
Commits:
f87cb8e8 by Sandro Knauß at 2023-06-06T21:20:43+02:00
Install desktp/appmetadata at expected places.
Closes: #1036691
- - - - -
eee22daf by Sandro Knauß at 2023-06-06T21:21:03+02:00
Install icons under usr/share/icons.
- - - - -
1 changed file:
- debian/rules
Changes:
=====================================
debian/rules
=====================================
@@ -4,6 +4,8 @@ export DH_VERBOSE = 1
%:
dh $@ --buildsystem=pybuild
+SIZES = 16 32 64 128 256 512
+
override_dh_auto_build:
PYBUILD_NAME=onionshare-cli dh_auto_build --buildsystem=pybuild --sourcedirectory cli --\
--after-build "CURDIR=$(CURDIR) BUILD_DIR={build_dir} $(CURDIR)/debian/missing-sources/uglifyjs.sh"
@@ -24,8 +26,22 @@ override_dh_auto_install:
rm debian/onionshare/usr/bin/onionshare-cli
execute_after_dh_auto_install:
- mkdir -p debian/onionshare/usr/share
+ mkdir -p debian/onionshare/usr/share/metainfo
+ cp desktop/org.onionshare.OnionShare.appdata.xml debian/onionshare/usr/share/metainfo/
+ mkdir -p debian/onionshare/usr/share/applications
+ cp desktop/org.onionshare.OnionShare.desktop debian/onionshare/usr/share/applications/
+
mv debian/onionshare/usr/lib/python3*/dist-packages/onionshare/resources debian/onionshare/usr/share/onionshare
+
+ # Move icons to the places where they are searched
+ mkdir -p debian/onionshare/usr/share/icons/hicolor/scalable/apps
+ cp desktop/org.onionshare.OnionShare.svg debian/onionshare/usr/share/icons/hicolor/scalable/apps/
+ $(foreach size,$(SIZES), \
+ mkdir debian/onionshare/usr/share/icons/hicolor/$(size)x$(size); \
+ mv debian/onionshare/usr/share/onionshare/onionshare-$(size).png debian/onionshare/usr/share/icons/hicolor/$(size)x$(size)/org.onionshare.OnionShare.png; \
+ ln -s /usr/share/icons/hicolor/$(size)x$(size)/org.onionshare.OnionShare.png debian/onionshare/usr/share/onionshare/onionshare-$(size).png; \
+ ) true
+
mkdir -p debian/onionshare-cli/usr/share
mv debian/onionshare-cli/usr/lib/python3*/dist-packages/onionshare_cli/resources debian/onionshare-cli/usr/share/onionshare-cli
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/onionshare/-/compare/4b4a433724dca8a9d1d842c22338d0984f8f940e...eee22daf823df4125e4ce79d9015a6d6e83c8c18
--
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/onionshare/-/compare/4b4a433724dca8a9d1d842c22338d0984f8f940e...eee22daf823df4125e4ce79d9015a6d6e83c8c18
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-commits/attachments/20230606/c289cff0/attachment-0001.htm>
More information about the Pkg-privacy-commits
mailing list