Skip to content

Commit

Permalink
stage libqt5gamepad5
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
ppd committed Sep 2, 2022
1 parent 35794ff commit ee6db71
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ package-repositories:
ppa: elmer-csc-ubuntu/elmer-csc-ppa
- type: apt
ppa: openscad/releases
- type: apt
components:
- main
suites:
- focal
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
url: http://origin.archive.neon.kde.org/user
key-server: keyserver.ubuntu.com

parts:
stub-chown:
Expand Down Expand Up @@ -231,6 +239,8 @@ parts:
kde_sdk_dir="/snap/kde-frameworks-5-96-qt-5-15-5-core20-sdk/current"
mkdir -p /etc/xdg/qtchooser
cp "$kde_sdk_dir/etc/xdg/qtchooser/default.conf" "/etc/xdg/qtchooser/default.conf"
mkdir -p /workspace/usr/bin
ln -s /usr/bin/shiboken2 /workspace/usr/bin/shiboken2
snapcraftctl build
sed -i -E \
"s|^Icon=(.*)|Icon=\${SNAP}/usr/share/icons/hicolor/scalable/apps/org.freecadweb.FreeCAD.svg|g" \
Expand Down Expand Up @@ -291,4 +301,6 @@ parts:
done
find $SNAPCRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
find $SNAPCRAFT_PRIME/usr/share -type d -empty -delete
find $SNAPCRAFT_PRIME/usr/lib -type f,l -name 'libQt*.so*' -delete
find $SNAPCRAFT_PRIME/usr/lib -type f,l \
-name 'libQt*.so*' `# remove all Qt libs pulled in from Ubuntu repos` \
-not -name 'libQt5Gamepad.so*' -delete `# for OpenSCAD`

0 comments on commit ee6db71

Please sign in to comment.