Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to YAML & move appindicator to shared-modules #300

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
273 changes: 0 additions & 273 deletions com.spotify.Client.json

This file was deleted.

121 changes: 121 additions & 0 deletions com.spotify.Client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
app-id: com.spotify.Client
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: spotify
separate-locales: false
finish-args:
- --device=dri
- --env=LD_LIBRARY_PATH=/app/lib
- --env=TMPDIR=/tmp
- --filesystem=xdg-music:ro
- --filesystem=xdg-pictures:ro
- --own-name=org.mpris.MediaPlayer2.spotify
- --share=ipc
- --share=network
- --socket=pulseaudio
- --socket=x11
- --talk-name=org.gnome.SessionManager
- --talk-name=org.gnome.SettingsDaemon.MediaKeys
- --talk-name=org.kde.StatusNotifierWatcher
modules:
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json
- shared-modules/lzo/lzo.json
- shared-modules/squashfs-tools/squashfs-tools.json

- name: ffmpeg
buildsystem: autotools
cleanup:
- /include
- /lib/pkgconfig
- /share
config-opts:
- --disable-avdevice
- --disable-avfilter
- --disable-bsfs
- --disable-decoders
- --disable-devices
- --disable-doc
- --disable-encoders
- --disable-filters
- --disable-hwaccels
- --disable-muxers
- --disable-programs
- --disable-protocols
- --disable-static
- --enable-decoder=aac
- --enable-decoder=aac_latm
- --enable-decoder=ac3
- --enable-decoder=als
- --enable-decoder=flac
- --enable-decoder=mp1
- --enable-decoder=mp2
- --enable-decoder=mp3
- --enable-decoder=mp3adu
- --enable-decoder=opus
- --enable-decoder=vorbis
- --enable-gnutls
- --enable-protocol=file
- --enable-shared
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-4.4.5.tar.xz
sha256: f9514e0d3515aee5a271283df71636e1d1ff7274b15853bcd84e144be416ab07
x-checker-data:
project-id: 5405
stable-only: true
type: anitya
url-template: https://ffmpeg.org/releases/ffmpeg-$version.tar.xz
versions:
<: '5'

- name: spotify-preload
buildsystem: simple
build-commands:
- cc spotify-preload.c -o spotify-preload.so -fPIC -shared -ldl
- install -Dm644 spotify-preload.so ${FLATPAK_DEST}/lib/spotify-preload.so
sources:
- type: file
path: spotify-preload.c

- name: spotify
buildsystem: simple
build-commands:
- install -Dm755 apply_extra ${FLATPAK_DEST}/bin
- install -Dm755 get-scale-factor.py xsettings.py ${FLATPAK_DEST}/bin
- install -Dm755 spotify-bin ${FLATPAK_DEST}/bin/spotify
- install -Dm644 ${FLATPAK_ID}.appdata.xml ${FLATPAK_DEST}/share/appdata/${FLATPAK_ID}.appdata.xml
- install -Dm644 ${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 ${FLATPAK_ID}-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg
- install -Dm644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources:
- type: extra-data
filename: spotify.snap
only-arches: [x86_64]
url: https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_79.snap
sha256: 7f0ffdb73d0875f5dd9bb5a17fffc02945ed49a19f373cdf6b8d624c991a77c0
size: 191000576
x-checker-data:
type: snapcraft
name: spotify
channel: stable
- type: file
path: com.spotify.Client-symbolic.svg
- type: file
path: com.spotify.Client.appdata.xml
- type: file
path: com.spotify.Client.desktop
- type: file
path: com.spotify.Client.svg
- type: file
path: get-scale-factor.py
- type: file
path: spotify-bin
- type: file
path: xsettings.py
- type: script
dest-filename: apply_extra
commands:
- unsquashfs -quiet -no-progress spotify.snap usr/bin usr/share/spotify
- mv squashfs-root/usr/* .
- rm -r spotify.snap squashfs-root share/spotify/apt-keys share/spotify/spotify.desktop