name: omxplayer-pi version: '0.2' summary: OpenMax player for the raspberry pi description: | OMXPlayer is a commandline OMX player for the Raspberry PI. It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone. OMXPlayer should be used with the fake KMS driver on Ubuntu Core, make sure to have "dtoverlay=vc4-fkms-v3d,cma-256" in /boot/uboot/config.txt (the default). After installation please connect the hardware observe interface sudo snap connect omxplayer-pi:hardware-observe If you want to play content from the home dir on ubuntu core, also connect the home interface sudo snap connect omxplayer-pi:home To play back content from a USB key or other external media, connect the removable-media interface sudo snap connect omxplayer-pi:removable-media Source for this snap: https://github.com/ogra1/omxplayer-snap base: core18 grade: stable confinement: strict architectures: - build-on: armhf run-on: armhf apps: omxplayer-pi: command: omxplayer.bin environment: LD_LIBRARY_PATH: $SNAP/usr/lib/omxplayer:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/samba:$LD_LIBRARY_PATH plugs: - network - network-bind - opengl - hardware-observe - home - removable-media set-permissions: command: set-permissions daemon: oneshot plugs: - opengl parts: vc4-libs: source: https://github.com/raspberrypi/userland.git source-depth: 1 plugin: nil override-build: | git apply ../../../vc-libs-neon.patch ./buildme . mkdir -p $SNAPCRAFT_PART_INSTALL/usr cp -av ./build/raspberry/release/opt/vc/lib $SNAPCRAFT_PART_INSTALL/usr/ cp -av ./build/raspberry/release/opt/vc/include $SNAPCRAFT_PART_INSTALL/usr/ build-packages: - cmake - g++ player: plugin: make source: https://github.com/popcornmix/omxplayer.git source-depth: 1 override-build: | git apply -v ../../../omxplayer-neon-and-build.patch make ffmpeg snapcraftctl build cp -av ../../../set-permissions $SNAPCRAFT_PART_INSTALL/usr/bin after: [ vc4-libs ] build-packages: - curl - libasound2-dev - libva2 - libvpx-dev - libpcre3-dev - libidn11-dev - libboost-dev - libfreetype6-dev - libdbus-1-dev - libssl-dev - libssh-dev - libsmbclient-dev - libvorbis-dev - subversion stage-packages: - fonts-dejavu-core - fonts-dejavu-extra - libasound2 - libbluray2 - libfontconfig1 - libgme0 - libgomp1 - libgsm1 - libicu60 - libmodplug1 - libmp3lame0 - libogg0 - libopenjp2-7 - libopus0 - liborc-0.4-0 - librtmp1 - libshine3 - libsnappy1v5 - libsoxr0 - libspeex1 - libssh-gcrypt-4 - libtheora0 - libtwolame0 - libva2 - libvorbis0a - libvorbisenc2 - libvpx5 - libwavpack1 - libwebp6 - libx264-152 - libx265-146 - libxml2 - libxvidcore4 - libzvbi0 - libasn1-8-heimdal - libgssapi3-heimdal - libhcrypto4-heimdal - libheimbase1-heimdal - libheimntlm0-heimdal - libhx509-5-heimdal - libkrb5-26-heimdal - libldap-2.4-2 - libldb1 - libroken18-heimdal - libsasl2-2 - libsmbclient - libssh-4 - libtalloc2 - libtdb1 - libtevent0 - libwbclient0 - libwind0-heimdal - samba-libs - libdb5.3