1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-11 08:15:30 +01:00
strawberry-audio-player-win.../snap/snapcraft.yaml

193 lines
4.8 KiB
YAML
Raw Normal View History

2019-01-29 22:44:07 +01:00
name: strawberry
2020-08-15 23:01:56 +02:00
version: '0.7.2+git'
2019-01-29 22:44:07 +01:00
summary: music player and collection organizer
description: |
Strawberry is a music player and collection organizer.
2019-01-29 22:44:07 +01:00
It is a fork of Clementine released in 2018 aimed at music collectors,
audio enthusiasts and audiophiles
grade: stable
confinement: strict
2019-04-12 23:27:01 +02:00
base: core18
2019-01-29 22:44:07 +01:00
parts:
2019-04-12 23:27:01 +02:00
2019-04-13 01:11:22 +02:00
desktop-qt5:
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
make-parameters:
- FLAVOR=qt5
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
stage-packages:
- libqt5gui5
- libqt5svg5
- libgdk-pixbuf2.0-0
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- gnome-themes-standard
- shared-mime-info
- adwaita-icon-theme
- oxygen-icon-theme
- breeze-icon-theme
2020-01-12 18:02:13 +01:00
- qtwayland5
2019-04-13 01:11:22 +02:00
- try: [appmenu-qt5]
2019-04-12 23:27:01 +02:00
alsa-lib:
plugin: autotools
2020-01-12 18:42:50 +01:00
source: https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.1.2.tar.bz2
2019-04-12 23:27:01 +02:00
configflags:
- --prefix=/usr
- --sysconfdir=/etc
- --libexec=/usr/lib
- --libdir=/usr/lib
- --localstatedir=/var
- --with-configdir=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa
- --with-plugindir=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr/lib/alsa-lib
- --disable-static
stage:
- usr/include
- usr/lib
prime:
- -usr/bin
- -usr/include
- -usr/lib/pkgconfig
- -usr/share/alsa/alsa.conf
- -usr/share/alsa/pcm
- -usr/share/alsa/topology/broadwell
2019-01-29 22:44:07 +01:00
strawberry:
plugin: cmake
source-type: git
2020-01-24 17:27:29 +01:00
source: https://github.com/strawberrymusicplayer/strawberry
2019-04-13 00:44:21 +02:00
after:
- alsa-lib
- desktop-qt5
2019-04-12 19:55:33 +02:00
override-build: |
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr
make -j $(getconf _NPROCESSORS_ONLN)
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
2019-09-24 00:06:37 +02:00
sed -i 's|Icon=strawberry|Icon=/usr/share/icons/hicolor/128x128/apps/strawberry\.png|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.strawberrymusicplayer.strawberry.desktop
sed -i 's|TryExec=.*|TryExec=/snap/bin/strawberry|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.strawberrymusicplayer.strawberry.desktop
2019-01-29 22:44:07 +01:00
build-packages:
- cmake
- make
- gcc
- g++
- protobuf-compiler
- libglib2.0-dev
2019-04-16 17:48:11 +02:00
- libgnutls28-dev
2019-01-29 22:44:07 +01:00
- libdbus-1-dev
- libprotobuf-dev
- libboost-dev
- libsqlite3-dev
- libasound2-dev
- libpulse-dev
- libtag1-dev
- qtbase5-dev
- qtbase5-dev-tools
- qtbase5-private-dev
- libqt5x11extras5-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libvlc-dev
- libcdio-dev
2020-08-15 02:36:54 +02:00
- libgpod-dev
2019-01-29 22:44:07 +01:00
- libmtp-dev
- libchromaprint-dev
2019-04-18 20:39:49 +02:00
- libfftw3-dev
2019-01-29 22:44:07 +01:00
stage-packages:
- libstdc++6
- libgcc1
2019-04-13 01:39:07 +02:00
- libprotobuf10
2019-01-29 22:44:07 +01:00
- libpcre16-3
- libqt5core5a
- libqt5gui5
- libqt5widgets5
- libqt5concurrent5
- libqt5network5
- libqt5dbus5
- libqt5sql5
- libqt5x11extras5
2019-01-31 00:08:52 +01:00
- libqt5sql5-sqlite
2019-01-29 22:44:07 +01:00
- libsqlite3-0
- libgpm2
- libasound2
2019-04-12 23:27:01 +02:00
- libasound2-plugins
2019-01-29 22:44:07 +01:00
- libpulse0
2019-04-13 01:39:07 +02:00
- libcdio17
2019-01-29 22:44:07 +01:00
- libgpod4
- libmtp9
- libvlc5
2019-04-13 01:39:07 +02:00
- libvlccore9
2019-01-29 22:44:07 +01:00
- libtag1v5
2019-04-13 01:39:07 +02:00
- libchromaprint1
2019-01-29 22:44:07 +01:00
- zlib1g
- libx11-6
2019-04-13 13:13:53 +02:00
- libxcomposite1
- libxcursor1
- libxrandr2
2019-01-29 22:44:07 +01:00
- libdb5.3
2019-04-13 13:13:53 +02:00
- libglu1
- libslang2
2019-05-07 21:04:52 +02:00
- libatk1.0-0
- libatk-bridge2.0-0
- libatk1.0-data
- libatk-adaptor
2019-04-12 19:55:33 +02:00
- dbus-x11
2019-01-29 22:44:07 +01:00
- libgstreamer1.0-0
- libgstreamer-plugins-base1.0-0
- gstreamer1.0-alsa
- gstreamer1.0-pulseaudio
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
apps:
strawberry:
2019-04-12 19:55:33 +02:00
command: desktop-launch $SNAP/usr/bin/strawberry
2019-09-24 00:06:37 +02:00
desktop: usr/share/applications/org.strawberrymusicplayer.strawberry.desktop
2019-01-31 00:08:52 +01:00
environment:
2019-04-12 23:27:01 +02:00
ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf
2019-01-31 00:08:52 +01:00
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
2020-01-12 18:02:13 +01:00
DISABLE_WAYLAND: 1
2019-01-29 22:44:07 +01:00
plugs:
- home
- udisks2
- network
- network-manager-observe
2019-04-13 00:21:19 +02:00
- network-bind
2019-01-29 22:44:07 +01:00
- desktop
- desktop-legacy
- x11
- wayland
- alsa
- pulseaudio
- removable-media
- optical-drive
- raw-usb
- media-hub
- screen-inhibit-control
2019-01-31 20:43:26 +01:00
- unity7
2019-04-12 19:55:33 +02:00
slots:
- mpris
2019-04-13 00:21:19 +02:00
strawberry-tagreader:
command: strawberry-tagreader
plugs:
- network
- network-manager-observe
2019-04-12 19:55:33 +02:00
- network-bind