Commit 3330d7e5 authored by Merlijn Sebrechts's avatar Merlijn Sebrechts 🐼 Committed by Boudewijn Rempt

Support ffmpeg in snap

parent ecc23e35
...@@ -16,6 +16,6 @@ sleep 4 # so network is up ...@@ -16,6 +16,6 @@ sleep 4 # so network is up
trap at_exit INT TERM EXIT trap at_exit INT TERM EXIT
lxc file push --recursive . $CONTAINER/workspace lxc file push -p --recursive . $CONTAINER/workspace
lxc exec $CONTAINER -- /workspace/build_in_container.sh lxc exec $CONTAINER -- /workspace/snap/build_in_container.sh
lxc file pull --recursive $CONTAINER/workspace/result . lxc file pull --recursive $CONTAINER/workspace/snap/result .
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -ex set -ex
cd /workspace cd /workspace/snap
ping -c1 networkcheck.kde.org ping -c1 networkcheck.kde.org
......
[Desktop Entry]
Name=Krita
Name[af]=Krita
Name[ar]=كريتا
Name[bg]=Krita
Name[br]=Krita
Name[bs]=Krita
Name[ca]=Krita
Name[ca@valencia]=Krita
Name[cs]=Krita
Name[cy]=Krita
Name[da]=Krita
Name[de]=Krita
Name[el]=Krita
Name[en_GB]=Krita
Name[eo]=Krita
Name[es]=Krita
Name[et]=Krita
Name[eu]=Krita
Name[fi]=Krita
Name[fr]=Krita
Name[fy]=Krita
Name[ga]=Krita
Name[gl]=Krita
Name[he]=Krita
Name[hi]=केरिता
Name[hne]=केरिता
Name[hr]=Krita
Name[hu]=Krita
Name[ia]=Krita
Name[is]=Krita
Name[it]=Krita
Name[ja]=Krita
Name[kk]=Krita
Name[ko]=Krita
Name[lt]=Krita
Name[lv]=Krita
Name[mr]=क्रिटा
Name[ms]=Krita
Name[nb]=Krita
Name[nds]=Krita
Name[ne]=क्रिता
Name[nl]=Krita
Name[nn]=Krita
Name[pl]=Krita
Name[pt]=Krita
Name[pt_BR]=Krita
Name[ro]=Krita
Name[ru]=Krita
Name[se]=Krita
Name[sk]=Krita
Name[sl]=Krita
Name[sv]=Krita
Name[ta]=கிரிட்டா
Name[tg]=Krita
Name[tr]=Krita
Name[ug]=Krita
Name[uk]=Krita
Name[uz]=Krita
Name[uz@cyrillic]=Krita
Name[wa]=Krita
Name[xh]=Krita
Name[x-test]=xxKritaxx
Name[zh_CN]=Krita
Name[zh_TW]=Krita
Exec=krita %F
GenericName=Digital Painting
GenericName[ar]=رسم رقمي
GenericName[bs]=Digitalno Bojenje
GenericName[ca]=Dibuix digital
GenericName[ca@valencia]=Dibuix digital
GenericName[cs]=Digitální malování
GenericName[da]=Digital tegning
GenericName[de]=Digitales Malen
GenericName[el]=Ψηφιακή ζωγραφική
GenericName[en_GB]=Digital Painting
GenericName[es]=Pintura digital
GenericName[et]=Digitaalne joonistamine
GenericName[eu]=Margolan digitala
GenericName[fi]=Digitaalimaalaus
GenericName[fr]=Peinture numérique
GenericName[gl]=Debuxo dixital
GenericName[hu]=Digitális festészet
GenericName[ia]=Pintura Digital
GenericName[is]=Stafræn málun
GenericName[it]=Pittura digitale
GenericName[ja]=デジタルペインティング
GenericName[kk]=Цифрлық сурет салу
GenericName[ko]=디지털 페인팅
GenericName[lt]=Skaitmeninis piešimas
GenericName[mr]=डिजिटल पेंटिंग
GenericName[nb]=Digital maling
GenericName[nl]=Digitaal schilderen
GenericName[nn]=Digital teikning
GenericName[pl]=Cyfrowe malowanie
GenericName[pt]=Pintura Digital
GenericName[pt_BR]=Pintura digital
GenericName[ru]=Цифровая живопись
GenericName[sk]=Digitálne maľovanie
GenericName[sl]=Digitalno slikanje
GenericName[sv]=Digital målning
GenericName[tr]=Sayısal Boyama
GenericName[ug]=سىفىرلىق رەسىم سىزغۇ
GenericName[uk]=Цифрове малювання
GenericName[x-test]=xxDigital Paintingxx
GenericName[zh_CN]=数字绘画
GenericName[zh_TW]=數位繪畫
MimeType=application/x-krita;image/openraster;application/x-krita-paintoppreset;
Comment=Pixel-based image manipulation program for the Calligra Suite
Comment[ar]=برنامج لتعديل الصور البكسليّة لطقم «كاليغرا»
Comment[ca]=Programa de manipulació d'imatges basades en píxels per a la Suite Calligra
Comment[ca@valencia]=Programa de manipulació d'imatges basades en píxels per a la Suite Calligra
Comment[de]=Pixelbasiertes Bildbearbeitungsprogramm für die Calligra-Suite
Comment[el]=Πρόγραμμα επεξεργασίας εικόνας με βάση εικονοστοιχεία για το Calligra Stage
Comment[en_GB]=Pixel-based image manipulation program for the Calligra Suite
Comment[es]=Programa de manipulación de imágenes basado en píxeles para la suite Calligra
Comment[et]=Calligra pikslipõhine pilditöötluse rakendus
Comment[eu]=Pixel-oinarridun irudiak manipulatzeko programa Calligra-Suiterako
Comment[fi]=Bittikarttakuvankäsittelyohjelma Calligra-toimisto-ohjelmistoon
Comment[gl]=Programa da colección de Calligra para a manipulación de imaxes baseadas en píxeles.
Comment[is]=Myndvinnsluforrit fyrir Calligra-forritavöndulinn
Comment[it]=Programma di manipolazione delle immagini basato su pixel per Calligra Suite
Comment[ko]=Calligra Suite를 위한 픽셀 기반 이미지 처리 프로그램
Comment[nl]=Afbeeldingsbewerkingsprogramma gebaseerd op pixels voor de Calligra Suite
Comment[nn]=Pikselbasert teikneprogram for Calligra
Comment[pl]=Program do obróbki obrazów na poziomie pikseli dla Pakietu Calligra
Comment[pt]='Plugin' de manipulação de imagens em pixels para o Calligra Stage
Comment[pt_BR]=Programa de manipulação de imagens baseado em pixels para o Calligra Suite
Comment[ru]=Программа редактирования пиксельной анимации для the Calligra Suite
Comment[sk]=Program na manipuláciu s pixelmi pre Calligra Suite
Comment[sv]=Bildpunktsbaserat bildbehandlingsprogram för Calligra-sviten
Comment[tr]=Calligra Suite için Pixel tabanlı görüntü düzenleme programı
Comment[uk]=Програма для роботи із растровими зображеннями для комплексу програм Calligra
Comment[x-test]=xxPixel-based image manipulation program for the Calligra Suitexx
Comment[zh_CN]=Calligra 套件的像素图像处理程序
Comment[zh_TW]=Calligra 套件中基於像素的影像處理程式
Type=Application
Icon=${SNAP}/meta/gui/krita.png
Categories=Qt;KDE;Graphics;2DGraphics;RasterGraphics;
X-KDE-NativeMimeType=application/x-krita
X-KDE-ExtraNativeMimeTypes=
StartupNotify=true
X-Krita-Version=28
...@@ -11,6 +11,11 @@ apps: ...@@ -11,6 +11,11 @@ apps:
krita: krita:
command: qt5-launch usr/bin/krita command: qt5-launch usr/bin/krita
plugs: [x11, unity7, home, opengl, network, network-bind, removable-media, desktop, desktop-legacy] plugs: [x11, unity7, home, opengl, network, network-bind, removable-media, desktop, desktop-legacy]
desktop: usr/share/applications/org.kde.krita.desktop
layout:
/usr/bin/ffmpeg:
bind-file: $SNAP/usr/bin/ffmpeg
parts: parts:
krita: krita:
...@@ -27,6 +32,11 @@ parts: ...@@ -27,6 +32,11 @@ parts:
# source: https://anongit.kde.org/krita.git # source: https://anongit.kde.org/krita.git
# source-type: git # source-type: git
# source-branch: master # source-branch: master
override-stage: |
# Stage the part
snapcraftctl stage
# Modify the .desktop file in the stage to point to where the icon will be in the installed snap
sed -i 's|Icon=\(.*\)|Icon=${SNAP}/usr/share/icons/hicolor/1024x1024/apps/\1.png|' usr/share/applications/org.kde.krita.desktop
build-packages: build-packages:
- gettext - gettext
- build-essential - build-essential
...@@ -85,7 +95,7 @@ parts: ...@@ -85,7 +95,7 @@ parts:
runtime: runtime:
plugin: nil plugin: nil
stage-packages: stage-packages:
- libexiv2-26 - libexiv2-27
- libfftw3-double3 - libfftw3-double3
- libgomp1 - libgomp1
- libgsl23 - libgsl23
...@@ -139,6 +149,10 @@ parts: ...@@ -139,6 +149,10 @@ parts:
- libqt5multimediagsttools5 - libqt5multimediagsttools5
- libqt5multimediaquick5 - libqt5multimediaquick5
- libqt5multimediawidgets5 - libqt5multimediawidgets5
# Required for rendering animations
- ffmpeg
- libglu1-mesa
- libslang2
prime: prime:
- "-usr/share/wallpapers/*" - "-usr/share/wallpapers/*"
- "-usr/share/fonts/*" - "-usr/share/fonts/*"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment