Skip to content

Commit 1da946d

Browse files
authored
Merge pull request #173 from furgo16/core22-cleanup
Cleanup core22 snap
2 parents 5bf9413 + c12de99 commit 1da946d

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

snap/snapcraft.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ description: |
1515
FreeCAD is multiplatfom, and reads and writes many open
1616
file formats such as STEP, IGES, STL and others.
1717
18-
Please also consider RealThunder's well-known FreeCAD fork
19-
`freecad-realthunder`: https://snapcraft.io/freecad-realthunder
20-
2118
Commands:
2219
freecad: Run FreeCAD
2320
freecad.cmd: Run FreeCAD command line interface
@@ -28,11 +25,8 @@ grade: devel
2825
confinement: strict
2926
compression: lzo
3027
license: LGPL-2.0-or-later
31-
assumes: [snapd2.55.3] # for cups interface & private shared memory
3228

3329
layout:
34-
/usr/share/X11:
35-
symlink: $SNAP/kf5/usr/share/X11
3630
/usr/bin/mpirun: # ElmerSolver_mpi
3731
symlink: $SNAP/usr/bin/orterun
3832
/usr/share/openmpi:
@@ -51,8 +45,6 @@ layout:
5145
bind-file: $SNAP/etc/matplotlibrc
5246
/usr/share/matplotlib:
5347
symlink: $SNAP/usr/share/matplotlib
54-
/usr/share/qt5:
55-
symlink: $SNAP/kf5/usr/share/qt5
5648
/usr/bin/dot: # Graphviz for dependency graph
5749
symlink: $SNAP/usr/bin/dot
5850
/usr/bin/unflatten: # Graphviz for dependency graph
@@ -71,12 +63,6 @@ plugs:
7163
# Necessary to enable semaphores for numba, OpenMP etc.
7264
shared-memory:
7365
private: true
74-
# QT5 libs
75-
kf5-core22:
76-
content: kf5-core22-all
77-
interface: content
78-
default-provider: kf5-core22
79-
target: $SNAP/kf5
8066

8167
environment:
8268
LD_LIBRARY_PATH: "$SNAP/usr/lib/:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/:$SNAP/kf5/usr/lib:/$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/lapack:$LD_LIBRARY_PATH"
@@ -165,7 +151,6 @@ parts:
165151
- -DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\;/snap/kde-qt5-core22-sdk/current\;/snap/kf5-core22-sdk/current/usr
166152
build-snaps:
167153
- freecad-deps-core22/candidate
168-
- kde-qt5-core22-sdk
169154
stage-snaps:
170155
- freecad-deps-core22/candidate
171156
build-packages:
@@ -310,10 +295,10 @@ parts:
310295
cleanup:
311296
after: [stub-chown, freecad, python-packages, snap-setup-mod, graphviz]
312297
plugin: nil
313-
build-snaps: [kf5-core22-sdk]
298+
build-snaps: [kf5-core22]
314299
override-prime: |
315300
set -eux
316-
for snap in "kf5-core22-sdk"; do # List all content-snaps you're using here
301+
for snap in "kf5-core22"; do # List all content-snaps you're using here
317302
cd "/snap/$snap/current" && \
318303
find . -type f,l -not -path "./usr/lib/python3/dist-packages/numpy*" \
319304
-not -name 'libblas.so*' \
@@ -328,3 +313,7 @@ parts:
328313
find $CRAFT_PRIME/usr/lib -type f,l \
329314
-name 'libQt*.so*' `# remove all Qt libs pulled in from Ubuntu repos` \
330315
-not -name 'libQt5Gamepad.so*' -delete `# for OpenSCAD`
316+
317+
lint:
318+
ignore:
319+
- library

0 commit comments

Comments
 (0)