db-move: moved adwaita-icon-theme from [testing] to [extra] (any)
[arch-packages.git] / gstreamer / trunk / PKGBUILD
blob658f4dec83bf8f17e77e6ea69d91c9ee2eb61b59
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=gstreamer
5 pkgname=(
6   gstreamer
7   gst-plugins-bad-libs   # Split badaudio first
8   gst-plugins-base-libs
9   gst-plugins-base
10   gst-plugins-good
11   gst-plugins-bad
12   gst-plugin-gtk
13   gst-plugin-msdk
14   gst-plugin-opencv
15   gst-plugin-qml6
16   gst-plugin-qmlgl
17   gst-plugin-qsv
18   gst-plugin-va
19   gst-plugin-wpe
20   gst-plugins-ugly
21   gst-libav
22   gst-rtsp-server
23   gst-editing-services
24   gstreamer-vaapi
25   gst-python
26   gstreamer-docs
28 pkgver=1.22.2
29 pkgrel=1
30 pkgdesc="Multimedia graph framework"
31 url="https://gstreamer.freedesktop.org/"
32 arch=(x86_64)
33 license=(LGPL)
34 makedepends=(
35   # superproject
36   git meson
38   # gstreamer
39   valgrind libunwind gobject-introspection bash-completion gtk3 libcap python
41   # gst-plugins-base
42   cdparanoia graphene opus libtheora libxv sdl2 qt5-base qt5-tools zlib libglvnd
43   wayland wayland-protocols libx11 libgudev libdrm mesa orc libxi
45   # gst-plugins-good
46   nasm v4l-utils aalib flac jack2 lame libcaca libdv mpg123 libraw1394
47   libavc1394 libiec61883 qt5-declarative qt5-x11extras qt5-wayland libpulse
48   libshout taglib twolame libvpx wavpack cairo libsoup3 qt6-declarative
49   qt6-wayland qt6-tools nettle
51   # gst-plugins-bad
52   opencv vulkan-icd-loader vulkan-headers vulkan-validation-layers shaderc
53   libltc bluez-libs libavtp libbs2b bzip2 chromaprint libdca faac faad2
54   libfdk-aac fluidsynth libgme libkate liblrdf ladspa libde265 lilv libmodplug
55   lv2 libmicrodns mjpegtools libmpcdec neon openal libdvdnav rtmpdump sbc
56   soundtouch spandsp libsrtp svt-hevc zvbi libnice webrtc-audio-processing
57   wildmidi zxing-cpp zbar libxml2 gsm libopenmpt wpewebkit libldac libfreeaptx
58   qrencode json-glib libva libxkbcommon-x11
60   # gst-plugins-ugly
61   a52dec opencore-amr libcdio libdvdread libmpeg2 libsidplay x264
63   # gst-libav
64   ffmpeg
66   # gstreamer-vaapi
67   libxrandr
69   # gst-python
70   python-gobject
72 checkdepends=(xorg-server-xvfb)
73 source=(
74   "git+https://gitlab.freedesktop.org/gstreamer/gstreamer.git?signed#tag=$pkgver"
75   "https://gstreamer.freedesktop.org/src/gstreamer-docs/gstreamer-docs-$pkgver.tar.xz"{,.asc}
76   0001-HACK-meson-Disable-broken-tests.patch
77   0002-imagesequencesrc-Properly-set-default-location.patch
78   0003-tests-allocators-Fix-fdmem-test-with-recent-GLib.patch
80 b2sums=('SKIP'
81         '7156bcd222dd35d063711cafb86bb944cdd493362c945be57192be32987604f6bb1981c39c73f130347a108398907063cc7286f7d25950a0eeaa55c367888956'
82         'SKIP'
83         '9437da39122a15e6501a325193bce135b2706de72f6dd0133120b70ad1b05b8b0191aae4d740430ddfb9787164930cb184afa57ebd0b431edd9452317661d2e5'
84         'fd5bfeaf5a08f225bfb81df1beac55c3d7332aa4ffb1ba0a3e662dccea6b5ca43eecee92578c54d2fc1e3aa2edc73eb09a02e9c0a8ac3ad2002995a6a0396fa2'
85         '8ba563a47ef4aa063b244f0e2ca8be2aee2d61174bdd4affa86979131ef8862d44da0f1be2a965482fbe1a8bbaee5d8103fc6644806a78e2d977e3fd0e46ed23')
86 validpgpkeys=(D637032E45B8C6585B9456565D2EEE6F6F349D7C) # Tim Müller <tim@gstreamer-foundation.org>
88 prepare() {
89   cd gstreamer
91   # Disable broken tests
92   git apply -3 ../0001-HACK-meson-Disable-broken-tests.patch
94   # Fix crash
95   # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4109
96   git apply -3 ../0002-imagesequencesrc-Properly-set-default-location.patch
98   # Fix fdmem test
99   # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4381
100   git apply -3 ../0003-tests-allocators-Fix-fdmem-test-with-recent-GLib.patch
103 build() {
104   local meson_options=(
105     # Superproject options
106     -D devtools=disabled
107     -D doc=disabled
108     -D examples=disabled
109     -D gobject-cast-checks=disabled
110     -D gpl=enabled
111     -D gst-examples=disabled
112     -D libnice=disabled
113     -D orc-source=system
114     -D package-origin="https://www.archlinux.org/"
115     -D vaapi=enabled
117     # Package names
118     -D gstreamer:package-name="Arch Linux gstreamer $pkgver-$pkgrel"
119     -D gst-plugins-base:package-name="Arch Linux gst-plugins-base $pkgver-$pkgrel"
120     -D gst-plugins-good:package-name="Arch Linux gst-plugins-good $pkgver-$pkgrel"
121     -D gst-plugins-bad:package-name="Arch Linux gst-plugins-bad $pkgver-$pkgrel"
122     -D gst-plugins-ugly:package-name="Arch Linux gst-plugins-ugly $pkgver-$pkgrel"
123     -D gst-libav:package-name="Arch Linux gst-libav $pkgver-$pkgrel"
124     -D gst-rtsp-server:package-name="Arch Linux gst-rtsp-server $pkgver-$pkgrel"
126     # Subproject options
127     -D gstreamer:dbghelp=disabled
128     -D gstreamer:ptp-helper-permissions=capabilities
129     -D gst-plugins-base:libvisual=disabled
130     -D gst-plugins-base:tremor=disabled
131     -D gst-plugins-good:rpicamsrc=disabled
132     -D gst-plugins-bad:amfcodec=disabled
133     -D gst-plugins-bad:directfb=disabled
134     -D gst-plugins-bad:directshow=disabled
135     -D gst-plugins-bad:directsound=disabled
136     -D gst-plugins-bad:flite=disabled
137     -D gst-plugins-bad:gs=disabled
138     -D gst-plugins-bad:iqa=disabled
139     -D gst-plugins-bad:isac=disabled
140     -D gst-plugins-bad:magicleap=disabled
141     -D gst-plugins-bad:onnx=disabled
142     -D gst-plugins-bad:openh264=disabled
143     -D gst-plugins-bad:openni2=disabled
144     -D gst-plugins-bad:opensles=disabled
145     -D gst-plugins-bad:tinyalsa=disabled
146     -D gst-plugins-bad:voaacenc=disabled
147     -D gst-plugins-bad:voamrwbenc=disabled
148     -D gst-plugins-bad:wasapi2=disabled
149     -D gst-plugins-bad:wasapi=disabled
150     -D gst-plugins-bad:wic=disabled
151     -D gst-plugins-bad:win32ipc=disabled
152     -D gst-editing-services:validate=disabled
153   )
155   arch-meson gstreamer build "${meson_options[@]}"
156   meson configure build  # Print config
157   meson compile -C build
160 check() (
161   export XDG_RUNTIME_DIR="$PWD/runtime-dir"
162   mkdir -p -m 700 "$XDG_RUNTIME_DIR"
164   # Flaky due to timeouts
165   xvfb-run -s '-nolisten local' \
166     meson test -C build --print-errorlogs -t 3
169 _install() {
170   local src dir
171   for src in "${files[@]}"; do
172     dir="$pkgdir/$(dirname "$src")"
173     mkdir -p "$dir"
174     mv -v "$src" "$dir"
175   done
178 package_gstreamer() {
179   pkgdesc+=" - core"
180   depends=(libxml2 glib2 libunwind libcap libelf)
181   optdepends=('python: gst-plugins-doc-cache-generator')
182   install=gstreamer.install
184   DESTDIR="$srcdir/root" meson install -C build
186   cd root; local files=(
187     usr/include/gstreamer-1.0/gst/{base,check,controller,net,*.h}
188     usr/lib/libgst{reamer,base,check,controller,net}-1.0.so*
189     usr/lib/pkgconfig/gstreamer{,-base,-check,-controller,-net}-1.0.pc
190     usr/lib/girepository-1.0/Gst{,Base,Check,Controller,Net}-1.0.typelib
191     usr/share/gir-1.0/Gst{,Base,Check,Controller,Net}-1.0.gir
193     usr/lib/gstreamer-1.0/gst-{completion,ptp}-helper
194     usr/lib/gstreamer-1.0/gst-{hotdoc-plugins,plugin}-scanner
195     usr/lib/gstreamer-1.0/gst-plugins-doc-cache-generator
196     usr/lib/gstreamer-1.0/libgstcoreelements.so
197     usr/lib/gstreamer-1.0/libgstcoretracers.so
199     usr/share/locale/*/LC_MESSAGES/gstreamer-1.0.mo
201     usr/bin/gst-{inspect,launch,stats,tester,typefind}-1.0
202     usr/share/man/man1/gst-{inspect,launch,stats,typefind}-1.0.1
204     usr/share/bash-completion/completions/gst-{inspect,launch}-1.0
205     usr/share/bash-completion/helpers/gst
207     usr/share/gdb/auto-load/usr/lib/libgstreamer-1.0.so*.py
208     usr/share/gstreamer-1.0/gdb/glib_gobject_helper.py
209     usr/share/gstreamer-1.0/gdb/gst_gdb.py
211     usr/share/aclocal/gst-element-check-1.0.m4
212   ); _install
215 package_gst-plugins-bad-libs() {
216   pkgdesc+=" - bad"
217   depends=(
218     "gst-plugins-base-libs=$pkgver"
219     orc libdrm libx11 libgudev libusb libxkbcommon-x11 libva libnice
220     vulkan-icd-loader wayland wayland-protocols
221   )
223   cd root; local files=(
224     usr/include/gstreamer-1.0/gst/audio/{audio-bad-prelude,gstnonstreamaudiodecoder,gstplanaraudioadapter}.h
225     usr/include/gstreamer-1.0/gst/{basecamerabinsrc,codecparsers,cuda,insertbin,interfaces,isoff,mpegts,play,player,sctp,transcoder,uridownloader,va,vulkan,wayland,webrtc}
226     usr/lib/libgst{adaptivedemux,badaudio,basecamerabinsrc,codecparsers,codecs,cuda,insertbin,isoff,mpegts}-1.0.so*
227     usr/lib/libgst{photography,play,player,sctp,transcoder,uridownloader,va,vulkan,wayland,webrtc,webrtcnice}-1.0.so*
228     usr/lib/pkgconfig/gstreamer-{bad-audio,codecparsers,cuda,insertbin,mpegts,photography,play,player,sctp,transcoder,vulkan{,-wayland,-xcb},va,wayland,webrtc{,-nice}}-1.0.pc
229     usr/lib/girepository-1.0/{CudaGst,Gst{BadAudio,Codecs,Cuda,InsertBin,Mpegts,Play,Player,Transcoder,Va,Vulkan{,Wayland,XCB},WebRTC}}-1.0.typelib
230     usr/share/gir-1.0/{CudaGst,Gst{BadAudio,Codecs,Cuda,InsertBin,Mpegts,Play,Player,Transcoder,Va,Vulkan{,Wayland,XCB},WebRTC}}-1.0.gir
232     usr/lib/pkgconfig/gstreamer-plugins-bad-1.0.pc
233     usr/lib/gstreamer-1.0/libgstaccurip.so
234     usr/lib/gstreamer-1.0/libgstadpcmdec.so
235     usr/lib/gstreamer-1.0/libgstadpcmenc.so
236     usr/lib/gstreamer-1.0/libgstaiff.so
237     usr/lib/gstreamer-1.0/libgstasfmux.so
238     usr/lib/gstreamer-1.0/libgstaudiobuffersplit.so
239     usr/lib/gstreamer-1.0/libgstaudiofxbad.so
240     usr/lib/gstreamer-1.0/libgstaudiolatency.so
241     usr/lib/gstreamer-1.0/libgstaudiomixmatrix.so
242     usr/lib/gstreamer-1.0/libgstaudiovisualizers.so
243     usr/lib/gstreamer-1.0/libgstautoconvert.so
244     usr/lib/gstreamer-1.0/libgstbayer.so
245     usr/lib/gstreamer-1.0/libgstbluez.so
246     usr/lib/gstreamer-1.0/libgstcamerabin.so
247     usr/lib/gstreamer-1.0/libgstcodecalpha.so
248     usr/lib/gstreamer-1.0/libgstcodectimestamper.so
249     usr/lib/gstreamer-1.0/libgstcoloreffects.so
250     usr/lib/gstreamer-1.0/libgstdebugutilsbad.so
251     usr/lib/gstreamer-1.0/libgstdecklink.so
252     usr/lib/gstreamer-1.0/libgstdvb.so
253     usr/lib/gstreamer-1.0/libgstdvbsubenc.so
254     usr/lib/gstreamer-1.0/libgstdvbsuboverlay.so
255     usr/lib/gstreamer-1.0/libgstdvdspu.so
256     usr/lib/gstreamer-1.0/libgstfaceoverlay.so
257     usr/lib/gstreamer-1.0/libgstfbdevsink.so
258     usr/lib/gstreamer-1.0/libgstfestival.so
259     usr/lib/gstreamer-1.0/libgstfieldanalysis.so
260     usr/lib/gstreamer-1.0/libgstfreeverb.so
261     usr/lib/gstreamer-1.0/libgstfrei0r.so
262     usr/lib/gstreamer-1.0/libgstgaudieffects.so
263     usr/lib/gstreamer-1.0/libgstgdp.so
264     usr/lib/gstreamer-1.0/libgstgeometrictransform.so
265     usr/lib/gstreamer-1.0/libgstid3tag.so
266     usr/lib/gstreamer-1.0/libgstinter.so
267     usr/lib/gstreamer-1.0/libgstinterlace.so
268     usr/lib/gstreamer-1.0/libgstipcpipeline.so
269     usr/lib/gstreamer-1.0/libgstivfparse.so
270     usr/lib/gstreamer-1.0/libgstivtc.so
271     usr/lib/gstreamer-1.0/libgstjp2kdecimator.so
272     usr/lib/gstreamer-1.0/libgstjpegformat.so
273     usr/lib/gstreamer-1.0/libgstkms.so
274     usr/lib/gstreamer-1.0/libgstlegacyrawparse.so
275     usr/lib/gstreamer-1.0/libgstmidi.so
276     usr/lib/gstreamer-1.0/libgstmpegpsdemux.so
277     usr/lib/gstreamer-1.0/libgstmpegpsmux.so
278     usr/lib/gstreamer-1.0/libgstmpegtsdemux.so
279     usr/lib/gstreamer-1.0/libgstmpegtsmux.so
280     usr/lib/gstreamer-1.0/libgstmxf.so
281     usr/lib/gstreamer-1.0/libgstnetsim.so
282     usr/lib/gstreamer-1.0/libgstnvcodec.so
283     usr/lib/gstreamer-1.0/libgstpcapparse.so
284     usr/lib/gstreamer-1.0/libgstpnm.so
285     usr/lib/gstreamer-1.0/libgstproxy.so
286     usr/lib/gstreamer-1.0/libgstremovesilence.so
287     usr/lib/gstreamer-1.0/libgstrfbsrc.so
288     usr/lib/gstreamer-1.0/libgstrist.so
289     usr/lib/gstreamer-1.0/libgstrtmp2.so
290     usr/lib/gstreamer-1.0/libgstrtpmanagerbad.so
291     usr/lib/gstreamer-1.0/libgstrtponvif.so
292     usr/lib/gstreamer-1.0/libgstsdpelem.so
293     usr/lib/gstreamer-1.0/libgstsegmentclip.so
294     usr/lib/gstreamer-1.0/libgstshm.so
295     usr/lib/gstreamer-1.0/libgstsiren.so
296     usr/lib/gstreamer-1.0/libgstsmooth.so
297     usr/lib/gstreamer-1.0/libgstspeed.so
298     usr/lib/gstreamer-1.0/libgstsubenc.so
299     usr/lib/gstreamer-1.0/libgstswitchbin.so
300     usr/lib/gstreamer-1.0/libgsttranscode.so
301     usr/lib/gstreamer-1.0/libgstuvch264.so
302     usr/lib/gstreamer-1.0/libgstv4l2codecs.so
303     usr/lib/gstreamer-1.0/libgstvideofiltersbad.so
304     usr/lib/gstreamer-1.0/libgstvideoframe_audiolevel.so
305     usr/lib/gstreamer-1.0/libgstvideoparsersbad.so
306     usr/lib/gstreamer-1.0/libgstvideosignal.so
307     usr/lib/gstreamer-1.0/libgstvmnc.so
308     usr/lib/gstreamer-1.0/libgstvulkan.so
309     usr/lib/gstreamer-1.0/libgstwaylandsink.so
310     usr/lib/gstreamer-1.0/libgsty4mdec.so
312     usr/share/gstreamer-1.0/encoding-profiles
313     usr/share/gstreamer-1.0/presets/GstFreeverb.prs
315     usr/share/locale/*/LC_MESSAGES/gst-plugins-bad-1.0.mo
317     usr/bin/gst-transcoder-1.0
318   ); _install
321 package_gst-plugins-base-libs() {
322   pkgdesc+=" - base"
323   depends=(
324     "gstreamer=$pkgver"
325     orc libxv iso-codes libgudev libgl mesa libxi wayland
326   )
328   cd root; local files=(
329     usr/include/gstreamer-1.0/gst/{allocators,app,audio,fft,gl,pbutils,riff,rtp,rtsp,sdp,tag,video}
330     usr/lib/libgst{allocators,app,audio,fft,gl,pbutils,riff,rtp,rtsp,sdp,tag,video}-1.0.so*
331     usr/lib/pkgconfig/gstreamer-{allocators,app,audio,fft,gl{,-egl,-prototypes,-wayland,-x11},pbutils,riff,rtp,rtsp,sdp,tag,video}-1.0.pc
332     usr/lib/girepository-1.0/Gst{Allocators,App,Audio,GL{,EGL,Wayland,X11},Pbutils,Rtp,Rtsp,Sdp,Tag,Video}-1.0.typelib
333     usr/share/gir-1.0/Gst{Allocators,App,Audio,GL{,EGL,Wayland,X11},Pbutils,Rtp,Rtsp,Sdp,Tag,Video}-1.0.gir
335     usr/lib/pkgconfig/gstreamer-plugins-base-1.0.pc
336     usr/lib/gstreamer-1.0/include/gst/gl/gstglconfig.h
337     usr/lib/gstreamer-1.0/libgstadder.so
338     usr/lib/gstreamer-1.0/libgstapp.so
339     usr/lib/gstreamer-1.0/libgstaudioconvert.so
340     usr/lib/gstreamer-1.0/libgstaudiomixer.so
341     usr/lib/gstreamer-1.0/libgstaudiorate.so
342     usr/lib/gstreamer-1.0/libgstaudioresample.so
343     usr/lib/gstreamer-1.0/libgstaudiotestsrc.so
344     usr/lib/gstreamer-1.0/libgstcompositor.so
345     usr/lib/gstreamer-1.0/libgstencoding.so
346     usr/lib/gstreamer-1.0/libgstgio.so
347     usr/lib/gstreamer-1.0/libgstoverlaycomposition.so
348     usr/lib/gstreamer-1.0/libgstpbtypes.so
349     usr/lib/gstreamer-1.0/libgstplayback.so
350     usr/lib/gstreamer-1.0/libgstrawparse.so
351     usr/lib/gstreamer-1.0/libgstsubparse.so
352     usr/lib/gstreamer-1.0/libgsttcp.so
353     usr/lib/gstreamer-1.0/libgsttypefindfunctions.so
354     usr/lib/gstreamer-1.0/libgstvideoconvertscale.so
355     usr/lib/gstreamer-1.0/libgstvideorate.so
356     usr/lib/gstreamer-1.0/libgstvideotestsrc.so
357     usr/lib/gstreamer-1.0/libgstvolume.so
358     usr/lib/gstreamer-1.0/libgstximagesink.so
359     usr/lib/gstreamer-1.0/libgstxvimagesink.so
361     usr/share/locale/*/LC_MESSAGES/gst-plugins-base-1.0.mo
363     usr/bin/gst-{device-monitor,discoverer,play}-1.0
364     usr/share/man/man1/gst-{device-monitor,discoverer,play}-1.0.1
366     usr/share/gst-plugins-base
367   ); _install
370 package_gst-plugins-base() {
371   pkgdesc+=" - base plugins"
372   depends=(
373     "gst-plugins-base-libs=$pkgver"
374     alsa-lib cdparanoia libvorbis libtheora pango opus graphene libpng libjpeg
375   )
377   cd root; local files=(
378     usr/lib/gstreamer-1.0/libgstalsa.so
379     usr/lib/gstreamer-1.0/libgstcdparanoia.so
380     usr/lib/gstreamer-1.0/libgstogg.so
381     usr/lib/gstreamer-1.0/libgstopengl.so
382     usr/lib/gstreamer-1.0/libgstopus.so
383     usr/lib/gstreamer-1.0/libgstpango.so
384     usr/lib/gstreamer-1.0/libgsttheora.so
385     usr/lib/gstreamer-1.0/libgstvorbis.so
386   ); _install
389 package_gst-plugins-good() {
390   pkgdesc+=" - good plugins"
391   depends=(
392     "gst-plugins-base-libs=$pkgver"
393     libpulse libsoup3 gst-plugins-base-libs wavpack aalib taglib libdv libshout
394     libvpx gdk-pixbuf2 libcaca libavc1394 libiec61883 libxdamage v4l-utils cairo
395     libgudev speex flac libraw1394 lame mpg123 twolame nettle
396     libjack.so
397   )
399   cd root; local files=(
400     usr/lib/gstreamer-1.0/libgst1394.so
401     usr/lib/gstreamer-1.0/libgstaasink.so
402     usr/lib/gstreamer-1.0/libgstadaptivedemux2.so
403     usr/lib/gstreamer-1.0/libgstalaw.so
404     usr/lib/gstreamer-1.0/libgstalpha.so
405     usr/lib/gstreamer-1.0/libgstalphacolor.so
406     usr/lib/gstreamer-1.0/libgstapetag.so
407     usr/lib/gstreamer-1.0/libgstaudiofx.so
408     usr/lib/gstreamer-1.0/libgstaudioparsers.so
409     usr/lib/gstreamer-1.0/libgstauparse.so
410     usr/lib/gstreamer-1.0/libgstautodetect.so
411     usr/lib/gstreamer-1.0/libgstavi.so
412     usr/lib/gstreamer-1.0/libgstcacasink.so
413     usr/lib/gstreamer-1.0/libgstcairo.so
414     usr/lib/gstreamer-1.0/libgstcutter.so
415     usr/lib/gstreamer-1.0/libgstdebug.so
416     usr/lib/gstreamer-1.0/libgstdeinterlace.so
417     usr/lib/gstreamer-1.0/libgstdtmf.so
418     usr/lib/gstreamer-1.0/libgstdv.so
419     usr/lib/gstreamer-1.0/libgsteffectv.so
420     usr/lib/gstreamer-1.0/libgstequalizer.so
421     usr/lib/gstreamer-1.0/libgstflac.so
422     usr/lib/gstreamer-1.0/libgstflv.so
423     usr/lib/gstreamer-1.0/libgstflxdec.so
424     usr/lib/gstreamer-1.0/libgstgdkpixbuf.so
425     usr/lib/gstreamer-1.0/libgstgoom.so
426     usr/lib/gstreamer-1.0/libgstgoom2k1.so
427     usr/lib/gstreamer-1.0/libgsticydemux.so
428     usr/lib/gstreamer-1.0/libgstid3demux.so
429     usr/lib/gstreamer-1.0/libgstimagefreeze.so
430     usr/lib/gstreamer-1.0/libgstinterleave.so
431     usr/lib/gstreamer-1.0/libgstisomp4.so
432     usr/lib/gstreamer-1.0/libgstjack.so
433     usr/lib/gstreamer-1.0/libgstjpeg.so
434     usr/lib/gstreamer-1.0/libgstlame.so
435     usr/lib/gstreamer-1.0/libgstlevel.so
436     usr/lib/gstreamer-1.0/libgstmatroska.so
437     usr/lib/gstreamer-1.0/libgstmonoscope.so
438     usr/lib/gstreamer-1.0/libgstmpg123.so
439     usr/lib/gstreamer-1.0/libgstmulaw.so
440     usr/lib/gstreamer-1.0/libgstmultifile.so
441     usr/lib/gstreamer-1.0/libgstmultipart.so
442     usr/lib/gstreamer-1.0/libgstnavigationtest.so
443     usr/lib/gstreamer-1.0/libgstoss4.so
444     usr/lib/gstreamer-1.0/libgstossaudio.so
445     usr/lib/gstreamer-1.0/libgstpng.so
446     usr/lib/gstreamer-1.0/libgstpulseaudio.so
447     usr/lib/gstreamer-1.0/libgstreplaygain.so
448     usr/lib/gstreamer-1.0/libgstrtp.so
449     usr/lib/gstreamer-1.0/libgstrtpmanager.so
450     usr/lib/gstreamer-1.0/libgstrtsp.so
451     usr/lib/gstreamer-1.0/libgstshapewipe.so
452     usr/lib/gstreamer-1.0/libgstshout2.so
453     usr/lib/gstreamer-1.0/libgstsmpte.so
454     usr/lib/gstreamer-1.0/libgstsoup.so
455     usr/lib/gstreamer-1.0/libgstspectrum.so
456     usr/lib/gstreamer-1.0/libgstspeex.so
457     usr/lib/gstreamer-1.0/libgsttaglib.so
458     usr/lib/gstreamer-1.0/libgsttwolame.so
459     usr/lib/gstreamer-1.0/libgstudp.so
460     usr/lib/gstreamer-1.0/libgstvideo4linux2.so
461     usr/lib/gstreamer-1.0/libgstvideobox.so
462     usr/lib/gstreamer-1.0/libgstvideocrop.so
463     usr/lib/gstreamer-1.0/libgstvideofilter.so
464     usr/lib/gstreamer-1.0/libgstvideomixer.so
465     usr/lib/gstreamer-1.0/libgstvpx.so
466     usr/lib/gstreamer-1.0/libgstwavenc.so
467     usr/lib/gstreamer-1.0/libgstwavpack.so
468     usr/lib/gstreamer-1.0/libgstwavparse.so
469     usr/lib/gstreamer-1.0/libgstximagesrc.so
470     usr/lib/gstreamer-1.0/libgstxingmux.so
471     usr/lib/gstreamer-1.0/libgsty4menc.so
473     usr/share/gstreamer-1.0/presets/GstIirEqualizer{3,10}Bands.prs
474     usr/share/gstreamer-1.0/presets/Gst{QTMux,VP8Enc}.prs
476     usr/share/locale/*/LC_MESSAGES/gst-plugins-good-1.0.mo
477   ); _install
480 package_gst-plugins-bad() {
481   pkgdesc+=" - bad plugins"
482   depends=(
483     "gst-plugins-bad-libs=$pkgver"
484     aom libass libbs2b bzip2 chromaprint pango lcms2 curl libxml2 libdc1394
485     libde265 openssl libdca faac faad2 libfdk-aac fluidsynth libgme nettle
486     libkate liblrdf lilv libmodplug mjpegtools libmpcdec neon openal openexr
487     openjpeg2 opus libdvdnav libdvdread librsvg rtmpdump sbc libsndfile libltc
488     soundtouch spandsp srt libsrtp zvbi libwebp webrtc-audio-processing wildmidi
489     x265 zbar gsm libopenmpt libldac libfreeaptx qrencode json-glib libavtp
490     libmicrodns svt-hevc zxing-cpp
491   )
493   cd root; local files=(
494     usr/lib/gstreamer-1.0/libgstaes.so
495     usr/lib/gstreamer-1.0/libgstaom.so
496     usr/lib/gstreamer-1.0/libgstassrender.so
497     usr/lib/gstreamer-1.0/libgstavtp.so
498     usr/lib/gstreamer-1.0/libgstbs2b.so
499     usr/lib/gstreamer-1.0/libgstbz2.so
500     usr/lib/gstreamer-1.0/libgstchromaprint.so
501     usr/lib/gstreamer-1.0/libgstclosedcaption.so
502     usr/lib/gstreamer-1.0/libgstcolormanagement.so
503     usr/lib/gstreamer-1.0/libgstcurl.so
504     usr/lib/gstreamer-1.0/libgstdash.so
505     usr/lib/gstreamer-1.0/libgstdc1394.so
506     usr/lib/gstreamer-1.0/libgstde265.so
507     usr/lib/gstreamer-1.0/libgstdtls.so
508     usr/lib/gstreamer-1.0/libgstdtsdec.so
509     usr/lib/gstreamer-1.0/libgstfaac.so
510     usr/lib/gstreamer-1.0/libgstfaad.so
511     usr/lib/gstreamer-1.0/libgstfdkaac.so
512     usr/lib/gstreamer-1.0/libgstfluidsynthmidi.so
513     usr/lib/gstreamer-1.0/libgstgme.so
514     usr/lib/gstreamer-1.0/libgstgsm.so
515     usr/lib/gstreamer-1.0/libgsthls.so
516     usr/lib/gstreamer-1.0/libgstkate.so
517     usr/lib/gstreamer-1.0/libgstladspa.so
518     usr/lib/gstreamer-1.0/libgstldac.so
519     usr/lib/gstreamer-1.0/libgstlv2.so
520     usr/lib/gstreamer-1.0/libgstmicrodns.so
521     usr/lib/gstreamer-1.0/libgstmodplug.so
522     usr/lib/gstreamer-1.0/libgstmpeg2enc.so
523     usr/lib/gstreamer-1.0/libgstmplex.so
524     usr/lib/gstreamer-1.0/libgstmusepack.so
525     usr/lib/gstreamer-1.0/libgstneonhttpsrc.so
526     usr/lib/gstreamer-1.0/libgstopenal.so
527     usr/lib/gstreamer-1.0/libgstopenaptx.so
528     usr/lib/gstreamer-1.0/libgstopenexr.so
529     usr/lib/gstreamer-1.0/libgstopenjpeg.so
530     usr/lib/gstreamer-1.0/libgstopenmpt.so
531     usr/lib/gstreamer-1.0/libgstopusparse.so
532     usr/lib/gstreamer-1.0/libgstqroverlay.so
533     usr/lib/gstreamer-1.0/libgstresindvd.so
534     usr/lib/gstreamer-1.0/libgstrsvg.so
535     usr/lib/gstreamer-1.0/libgstrtmp.so
536     usr/lib/gstreamer-1.0/libgstsbc.so
537     usr/lib/gstreamer-1.0/libgstsctp.so
538     usr/lib/gstreamer-1.0/libgstsmoothstreaming.so
539     usr/lib/gstreamer-1.0/libgstsndfile.so
540     usr/lib/gstreamer-1.0/libgstsoundtouch.so
541     usr/lib/gstreamer-1.0/libgstspandsp.so
542     usr/lib/gstreamer-1.0/libgstsrt.so
543     usr/lib/gstreamer-1.0/libgstsrtp.so
544     usr/lib/gstreamer-1.0/libgstsvthevcenc.so
545     usr/lib/gstreamer-1.0/libgstteletext.so
546     usr/lib/gstreamer-1.0/libgsttimecode.so
547     usr/lib/gstreamer-1.0/libgstttmlsubs.so
548     usr/lib/gstreamer-1.0/libgstwebp.so
549     usr/lib/gstreamer-1.0/libgstwebrtc.so
550     usr/lib/gstreamer-1.0/libgstwebrtcdsp.so
551     usr/lib/gstreamer-1.0/libgstwildmidi.so
552     usr/lib/gstreamer-1.0/libgstx265.so
553     usr/lib/gstreamer-1.0/libgstzbar.so
554     usr/lib/gstreamer-1.0/libgstzxing.so
555   ); _install
558 package_gst-plugin-gtk() {
559   pkgdesc+=" - gtk plugin"
560   depends=("gst-plugins-bad-libs=$pkgver" gtk3)
562   cd root; local files=(
563     usr/lib/gstreamer-1.0/libgstgtk.so
564     usr/lib/gstreamer-1.0/libgstgtkwayland.so
565   ); _install
568 package_gst-plugin-msdk() {
569   pkgdesc+=" - msdk plugin"
570   depends=("gst-plugins-bad-libs=$pkgver" libmfx)
572   cd root; local files=(
573     usr/lib/gstreamer-1.0/libgstmsdk.so
574   ); _install
577 package_gst-plugin-opencv() {
578   pkgdesc+=" - opencv plugin"
579   depends=("gst-plugins-base-libs=$pkgver" opencv)
581   cd root; local files=(
582     usr/include/gstreamer-1.0/gst/opencv
583     usr/lib/libgstopencv-1.0.so*
585     usr/lib/gstreamer-1.0/libgstopencv.so
586   ); _install
589 package_gst-plugin-qml6() {
590   pkgdesc+=" - qml6 plugin"
591   depends=(
592     "gst-plugins-base-libs=$pkgver"
593     qt6-declarative qt6-wayland
594   )
596   cd root; local files=(
597     usr/lib/gstreamer-1.0/libgstqml6.so
598   ); _install
601 package_gst-plugin-qmlgl() {
602   pkgdesc+=" - qmlgl plugin"
603   depends=(
604     "gst-plugins-base-libs=$pkgver"
605     qt5-declarative qt5-x11extras qt5-wayland
606   )
608   cd root; local files=(
609     usr/lib/gstreamer-1.0/libgstqmlgl.so
610   ); _install
613 package_gst-plugin-qsv() {
614   pkgdesc+=" - qsv plugin"
615   depends=("gst-plugins-bad-libs=$pkgver" libmfx)
617   cd root; local files=(
618     usr/lib/gstreamer-1.0/libgstqsv.so
619   ); _install
623 package_gst-plugin-va() {
624   pkgdesc+=" - va plugin"
625   depends=("gst-plugins-bad-libs=$pkgver")
627   cd root; local files=(
628     usr/lib/gstreamer-1.0/libgstva.so
629   ); _install
632 package_gst-plugin-wpe() {
633   pkgdesc+=" - wpe plugin"
634   depends=("gst-plugins-base-libs=$pkgver" wpewebkit)
636   cd root; local files=(
637     usr/lib/gstreamer-1.0/libgstwpe.so
638     usr/lib/gst-plugins-bad/wpe-extension/libgstwpeextension.so
639   ); _install
642 package_gst-plugins-ugly() {
643   pkgdesc+=" - ugly plugins"
644   depends=(
645     "gst-plugins-base-libs=$pkgver"
646     libdvdread libmpeg2 a52dec libsidplay libcdio x264 opencore-amr
647   )
649   cd root; local files=(
650     usr/lib/gstreamer-1.0/libgsta52dec.so
651     usr/lib/gstreamer-1.0/libgstamrnb.so
652     usr/lib/gstreamer-1.0/libgstamrwbdec.so
653     usr/lib/gstreamer-1.0/libgstasf.so
654     usr/lib/gstreamer-1.0/libgstcdio.so
655     usr/lib/gstreamer-1.0/libgstdvdlpcmdec.so
656     usr/lib/gstreamer-1.0/libgstdvdread.so
657     usr/lib/gstreamer-1.0/libgstdvdsub.so
658     usr/lib/gstreamer-1.0/libgstmpeg2dec.so
659     usr/lib/gstreamer-1.0/libgstrealmedia.so
660     usr/lib/gstreamer-1.0/libgstsid.so
661     usr/lib/gstreamer-1.0/libgstx264.so
663     usr/share/gstreamer-1.0/presets/Gst{Amrnb,X264}Enc.prs
665     usr/share/locale/*/LC_MESSAGES/gst-plugins-ugly-1.0.mo
666   ); _install
669 package_gst-libav() {
670   pkgdesc+=" - libav plugin"
671   depends=("gst-plugins-base-libs=$pkgver" bzip2 ffmpeg)
672   provides=("gst-ffmpeg=$pkgver")
674   cd root; local files=(
675     usr/lib/gstreamer-1.0/libgstlibav.so
676   ); _install
679 package_gst-rtsp-server() {
680   pkgdesc+=" - rtsp server"
681   depends=("gst-plugins-base-libs=$pkgver")
683   cd root; local files=(
684     usr/include/gstreamer-1.0/gst/rtsp-server
685     usr/lib/libgstrtspserver-1.0.so*
686     usr/lib/pkgconfig/gstreamer-rtsp-server-1.0.pc
687     usr/lib/girepository-1.0/GstRtspServer-1.0.typelib
688     usr/share/gir-1.0/GstRtspServer-1.0.gir
690     usr/lib/gstreamer-1.0/libgstrtspclientsink.so
691   ); _install
694 package_gst-editing-services() {
695   pkgdesc+=" - editing services"
696   depends=("gst-plugins-base-libs=$pkgver" python)
698   cd root; local files=(
699     usr/include/gstreamer-1.0/ges
700     usr/lib/libges-1.0.so*
701     usr/lib/pkgconfig/gst-editing-services-1.0.pc
702     usr/lib/girepository-1.0/GES-1.0.typelib
703     usr/share/gir-1.0/GES-1.0.gir
705     usr/lib/gstreamer-1.0/libgstges.so
706     usr/lib/gstreamer-1.0/libgstnle.so
708     usr/lib/python*/site-packages/gi/overrides/GES.py
710     usr/bin/ges-launch-1.0
711     usr/share/man/man1/ges-launch-1.0.1
713     usr/share/bash-completion/completions/ges-launch-1.0
714   ); _install
716   python -m compileall -d /usr/lib "$pkgdir/usr/lib"
717   python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
720 package_gstreamer-vaapi() {
721   pkgdesc+=" - vaapi plugin"
722   depends=("gst-plugins-bad-libs=$pkgver" libxrandr)
724   cd root; local files=(
725     usr/lib/gstreamer-1.0/libgstvaapi.so
726   ); _install
729 package_gst-python() {
730   pkgdesc+=" - python plugin"
731   depends=("gst-plugins-base-libs=$pkgver" python-gobject)
733   cd root; local files=(
734     usr/lib/gstreamer-1.0/libgstpython.so
735     usr/lib/python*/site-packages/gi/overrides
736   ); _install
738   python -m compileall -d /usr/lib "$pkgdir/usr/lib"
739   python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
742 package_gstreamer-docs() {
743   pkgdesc+=" - documentation"
744   license=(GPL3 LGPL custom:BSD custom:CC-BY-SA-4.0 custom:MIT custom:OPL)
746   # make sure there are no files left to install
747   find root -depth ! -type d
748   find root -depth -print0 | xargs -0 rmdir
750   cd gstreamer-docs-${pkgver%%+*}
752   mkdir -p "$pkgdir/usr/share"
753   cp -a devhelp "$pkgdir/usr/share/devhelp"
755   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING LICENSE*
758 # vim:set sw=2 sts=-1 et: