git » mlt.git » commit a22e0bf

Compress lumas (FS#67448)

author Antonio Rojas
2020-07-31 14:27:42 UTC
committer Antonio Rojas
2020-07-31 14:27:42 UTC
parent 58571c4050dbbf756e3cd6641aa86c2cf343e4f7

Compress lumas (FS#67448)

PKGBUILD +8 -2

diff --git a/PKGBUILD b/PKGBUILD
index 0d6b0b2..b844884 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
 
 pkgname=mlt
 pkgver=6.22.0
-pkgrel=1
+pkgrel=2
 pkgdesc="An open source multimedia framework"
 arch=(x86_64)
 url="https://www.mltframework.org"
@@ -33,7 +33,7 @@ optdepends=('sdl_image: SDL1 plugin'
         'rtaudio: rtaudio plugin'
         'python: python bindings')
 makedepends=(cmake ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg
-             jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio)
+             jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio imagemagick)
 conflicts=(python-mlt)
 provides=(python-mlt)
 replaces=(python-mlt)
@@ -68,4 +68,10 @@ package() {
   mkdir -p "$pkgdir/$_pythonpath"
   install -m755 mlt.py "$pkgdir/$_pythonpath" 
   install -m755 _mlt.so "$pkgdir/$_pythonpath"
+
+# Compress lumas
+  for pgm in "$pkgdir"/usr/share/mlt/lumas/*/*.pgm; do
+    convert $pgm{,.png}
+    rm -f $pgm
+  done
 }