From d8dd01ecd5a0a6db859c1273c0928129a62563cc Mon Sep 17 00:00:00 2001 From: Npepperlinux Date: Fri, 1 Dec 2023 11:22:56 +0900 Subject: [PATCH] =?UTF-8?q?snapcraft.yaml=E3=81=AEtypo=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=81=A8=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snap/snapcraft.yaml | 59 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 310ecbd4d..f8cb5024b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -145,8 +145,8 @@ parts: - libsratom-0-0 - libssh-gcrypt-4 - libudfread0 - - libva-drm2 - - libva-x11-2 + # - libva-drm2 + # - libva-x11-2 - libvdpau1 - libvidstab1.1 - libx265-199 @@ -162,6 +162,29 @@ parts: - ocl-icd-libopencl1 - on amd64: - libmfx1 + # manual + - liblua5.2-0 + - libmpv1 + - libmujs1 + - libopenal1 + - libplacebo192 + - libsixel1 + - libsndio7.0 + - libuchardet0 + - libusb-1.0-0 + - libvulkan1 + - libxcb-shape0 + - libcdio19 + - libcdio-cdda2 + - libcdio-paranoia2 + - libdc1394-25 + - libdecor-0-0 + - libdvdnav4 + - libdvdread8 + - libsdl2-2.0-0 + - libxss1 + - libxv1 + - libavdevice58 - libsecret-1-0 # flutter_secure_storage prime: - usr/lib/*/blas/libblas.so* @@ -203,8 +226,8 @@ parts: - usr/lib/*/libsratom-0.so* - usr/lib/*/libssh-gcrypt.so* - usr/lib/*/libudfread.so* - - usr/lib/*/libva-drm.so* - - usr/lib/*/libva-x11.so* + # - usr/lib/*/libva-drm.so* + # - usr/lib/*/libva-x11.so* - usr/lib/*/libvdpau.so* - usr/lib/*/libvidstab.so* - usr/lib/*/libx265.so* @@ -223,15 +246,39 @@ parts: - usr/lib/*/libavcodec.so* - usr/lib/*/libavutil.so* - usr/lib/*/libswresample.so* + # manual + - usr/lib/*/liblua5.2.so* + - usr/lib/*/libmpv.so* + - usr/lib/*/libmujs.so* + - usr/lib/*/libopenal.so* + - usr/lib/*/libplacebo.so* + - usr/lib/*/libsixel.so* + - usr/lib/*/libsndio.so* + - usr/lib/*/libuchardet.so* + - usr/lib/*/libusb-1.0.so* + - usr/lib/*/libvulkan.so* + - usr/lib/*/libxcb-shape.so* + - usr/lib/*/libcdio.so* + - usr/lib/*/libcdio_cdda.so* + - usr/lib/*/libcdio_paranoia.so* + - usr/lib/*/libdc1394.so* + - usr/lib/*/libdecor-0.so* + - usr/lib/*/libdvdnav.so* + - usr/lib/*/libdvdread.so* + - usr/lib/*/libSDL2-2.0.so* + - usr/lib/*/libXss.so* + - usr/lib/*/libXv.so* + - usr/lib/*/libavdevice.so* - usr/lib/*/libsecret-1.so* # flutter_secure_storage cleanup: after: [miria, zenity, deps] # Make this part run last; list all your other parts here plugin: nil - build-snaps: [gnome-42-2204, gtk-common-theme, core22] # List all content-snaps you're using here + build-snaps: [gnome-42-2204, gtk-common-themes, core22] # List all content-snaps you're using here override-prime: | set -eux - for snap in "gnome-42-2204" "gtk-common-theme" "core22"; do # List all content-snaps you're using here + mv $SNAPCRAFT_PRIME/usr/lib/*/*/* $SNAPCRAFT_PRIME/usr/lib/*/ + for snap in "gnome-42-2204" "gtk-common-themes" "core22"; do # List all content-snaps you're using here cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \; done for CRUFT in bug lintian man; do