git » vlc.git » commit 72701b6

Use bash arrays with one entry per line for easier handling

author David Runge
2023-12-19 17:58:23 UTC
committer David Runge
2023-12-19 18:18:48 UTC
parent fbf315e2b05e30c520469a23dd58cd639aebc35a

Use bash arrays with one entry per line for easier handling

Signed-off-by: David Runge <dvzrv@archlinux.org>

PKGBUILD +163 -86

diff --git a/PKGBUILD b/PKGBUILD
index 9c6539e..39d1446 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,95 +13,172 @@ pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player'
 url='https://www.videolan.org/vlc/'
 arch=('x86_64')
 license=('LGPL2.1' 'GPL2')
-# NOTE: switch to ffmpeg4.4, as ffmpeg >= 5 requires extensive changes disabling VAAPI (only supported with vlc >= 4)
-depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'libproxy' 'lua' 'libidn'
-         'libmatroska' 'taglib' 'libmpcdec' 'ffmpeg4.4' 'faad2' 'libmad'
-         'libmpeg2' 'xcb-util-keysyms' 'libtar' 'libxinerama' 'libsecret'
-         'libupnp' 'libixml.so' 'libupnp.so' 'libarchive' 'qt5-base'
-         'qt5-x11extras' 'qt5-svg' 'freetype2' 'fribidi' 'harfbuzz'
-         'fontconfig' 'libxml2' 'gnutls' 'aribb24')
-makedepends=('gst-plugins-base-libs' 'live-media' 'libnotify' 'libbluray'
-             'flac' 'libdc1394' 'libavc1394' 'libcaca' 'gtk3'
-             'librsvg' 'libgme' 'xosd' 'twolame' 'aalib' 'avahi' 'systemd-libs'
-             'libmtp' 'libmicrodns' 'libdvdcss' 'smbclient'
-             'vcdimager' 'libssh2' 'mesa' 'protobuf' 'libnfs' 'mpg123'
-             'libdvdread' 'libdvdnav' 'libogg' 'libshout' 'libmodplug' 'libvpx'
-             'libvorbis' 'speex' 'opus' 'libtheora' 'libpng' 'libjpeg-turbo'
-             'libx265.so' 'libx264.so' 'zvbi' 'libass' 'libkate' 'libtiger'
-             'sdl_image' 'libpulse' 'alsa-lib' 'jack' 'libsamplerate' 'libsoxr'
-             'lirc' 'libgoom2' 'projectm' 'aom' 'srt' 'dav1d'
-             'aribb25' 'pcsclite' 'wayland-protocols')
-
-#            'chromaprint: Chromaprint audio fingerprinter'
-optdepends=('avahi: service discovery using bonjour protocol'
-            'aom: AOM AV1 codec'
-            'gst-plugins-base-libs: for libgst plugins'
-            'dav1d: dav1d AV1 decoder'
-            'libdvdcss: decoding encrypted DVDs'
-            'libavc1394: devices using the 1394ta AV/C'
-            'libdc1394: IEEE 1394 access plugin'
-            'kwallet: kwallet keystore'
-            'libva-vdpau-driver: vdpau backend nvidia'
-            'libva-intel-driver: video backend intel'
-            'libbluray: Blu-Ray video input'
-            'flac: Free Lossless Audio Codec plugin'
-            'twolame: TwoLAME mpeg2 encoder plugin'
-            'libgme: Game Music Emu plugin'
-            'vcdimager: navigate VCD with libvcdinfo'
-            'libmtp: MTP devices discovery'
-            'systemd-libs: udev services discovery'
-            'smbclient: SMB access plugin'
-            'libcdio: audio CD playback'
-            'gnu-free-fonts: subtitle font '
-            'ttf-dejavu: subtitle font'
-            'libssh2: sftp access'
-            'libnfs: NFS access'
-            'mpg123: mpg123 codec'
-            'protobuf: chromecast streaming'
-            'libmicrodns: mDNS services discovery (chromecast etc)'
-            'lua-socket: http interface'
-            'libdvdread: DVD input module'
-            'libdvdnav: DVD with navigation input module'
-            'libogg: Ogg and OggSpots codec'
-            'libshout: shoutcast/icecast output plugin'
-            'libmodplug: MOD output plugin'
-            'libvpx: VP8 and VP9 codec'
-            'libvorbis: Vorbis decoder/encoder'
-            'speex: Speex codec'
-            'opus: opus codec'
-            'libtheora: theora codec'
-            'libpng: PNG support'
-            'libjpeg-turbo: JPEG support'
-            'librsvg: SVG plugin'
-            'x264: H264 encoding'
-            'x265: HEVC/H.265 encoder'
-            'zvbi: VBI/Teletext/webcam/v4l2 capture/decoding'
-            'libass: Subtitle support'
-            'libkate: Kate codec'
-            'libtiger: Tiger rendering for Kate streams'
-            'sdl_image: SDL image support'
-            'srt: SRT input/output plugin'
-            'aalib: ASCII art video output'
-            'libcaca: colored ASCII art video output'
-            'libpulse: PulseAudio audio output'
-            'alsa-lib: ALSA audio output'
-            'jack: jack audio server'
-            'libsamplerate: audio Resampler'
-            'libsoxr: SoX audio Resampler'
-            'lirc: lirc control'
-            'libgoom2: Goom visualization'
-            'projectm: ProjectM visualisation'
-            'ncurses: ncurses interface'
-            'libnotify: notification plugin'
-            'gtk3: notification plugin'
-            'aribb25: aribcam support'
-            'pcsclite: aribcam support'
-            'live-media: streaming over RTSP')
+depends=(
+  'a52dec'
+  'aribb24'
+  'faad2'
+  'ffmpeg4.4'  # NOTE: switch to ffmpeg4.4, as ffmpeg >= 5 requires extensive changes disabling VAAPI (only supported with vlc >= 4)
+  'fontconfig'
+  'freetype2'
+  'fribidi'
+  'gnutls'
+  'harfbuzz'
+  'libarchive'
+  'libdca'
+  'libdvbpsi'
+  'libidn'
+  'libmad'
+  'libmatroska'
+  'libmpcdec'
+  'libmpeg2'
+  'libproxy'
+  'libsecret'
+  'libtar'
+  'libupnp' 'libixml.so' 'libupnp.so'
+  'libxinerama'
+  'libxml2'
+  'libxpm'
+  'lua'
+  'qt5-base'
+  'qt5-svg'
+  'qt5-x11extras'
+  'taglib'
+  'xcb-util-keysyms'
+)
+makedepends=(
+  'aalib'
+  'alsa-lib'
+  'aom'
+  'aribb25'
+  'avahi'
+  'dav1d'
+  'flac'
+  'gst-plugins-base-libs'
+  'gtk3'
+  'jack'
+  'libass'
+  'libavc1394'
+  'libbluray'
+  'libcaca'
+  'libdc1394'
+  'libdvdcss'
+  'libdvdnav'
+  'libdvdread'
+  'libgme'
+  'libgoom2'
+  'libjpeg-turbo'
+  'libkate'
+  'libmicrodns'
+  'libmodplug'
+  'libmtp'
+  'libnotify'
+  'libnfs'
+  'libogg'
+  'libpng'
+  'libpulse'
+  'librsvg'
+  'libsamplerate'
+  'libshout'
+  'libsoxr'
+  'libssh2'
+  'libtheora'
+  'libtiger'
+  'libvorbis'
+  'libvpx'
+  'lirc'
+  'live-media'
+  'mesa'
+  'mpg123'
+  'opus'
+  'pcsclite'
+  'projectm'
+  'protobuf'
+  'sdl_image'
+  'smbclient'
+  'speex'
+  'srt'
+  'systemd-libs'
+  'twolame'
+  'vcdimager'
+  'wayland-protocols'
+  'x264' 'libx264.so'
+  'x265' 'libx265.so'
+  'xosd'
+  'zvbi'
+)
+optdepends=(
+  'aalib: ASCII art video output'
+  'alsa-lib: ALSA audio output'
+  'aom: AOM AV1 codec'
+  'aribb25: aribcam support'
+  'avahi: service discovery using bonjour protocol'
+  'dav1d: dav1d AV1 decoder'
+  'flac: Free Lossless Audio Codec plugin'
+  'gnu-free-fonts: subtitle font '
+  'gst-plugins-base-libs: for libgst plugins'
+  'gtk3: notification plugin'
+  'jack: jack audio server'
+  'kwallet: kwallet keystore'
+  'libass: Subtitle support'
+  'libavc1394: devices using the 1394ta AV/C'
+  'libbluray: Blu-Ray video input'
+  'libcaca: colored ASCII art video output'
+  'libcdio: audio CD playback'
+  'libdc1394: IEEE 1394 access plugin'
+  'libdvdcss: decoding encrypted DVDs'
+  'libdvdnav: DVD with navigation input module'
+  'libdvdread: DVD input module'
+  'libgme: Game Music Emu plugin'
+  'libgoom2: Goom visualization'
+  'libjpeg-turbo: JPEG support'
+  'libkate: Kate codec'
+  'libmodplug: MOD output plugin'
+  'libmicrodns: mDNS services discovery (chromecast etc)'
+  'libmtp: MTP devices discovery'
+  'libnfs: NFS access'
+  'libnotify: notification plugin'
+  'libogg: Ogg and OggSpots codec'
+  'libpng: PNG support'
+  'libpulse: PulseAudio audio output'
+  'librsvg: SVG plugin'
+  'libsamplerate: audio Resampler'
+  'libshout: shoutcast/icecast output plugin'
+  'libsoxr: SoX audio Resampler'
+  'libssh2: sftp access'
+  'libtheora: theora codec'
+  'libtiger: Tiger rendering for Kate streams'
+  'libva-intel-driver: video backend intel'
+  'libva-vdpau-driver: vdpau backend nvidia'
+  'libvorbis: Vorbis decoder/encoder'
+  'libvpx: VP8 and VP9 codec'
+  'lirc: lirc control'
+  'live-media: streaming over RTSP'
+  'lua-socket: http interface'
+  'mpg123: mpg123 codec'
+  'ncurses: ncurses interface'
+  'opus: opus codec'
+  'pcsclite: aribcam support'
+  'projectm: ProjectM visualisation'
+  'protobuf: chromecast streaming'
+  'sdl_image: SDL image support'
+  'smbclient: SMB access plugin'
+  'speex: Speex codec'
+  'srt: SRT input/output plugin'
+  'systemd-libs: udev services discovery'
+  'ttf-dejavu: subtitle font'
+  'twolame: TwoLAME mpeg2 encoder plugin'
+  'vcdimager: navigate VCD with libvcdinfo'
+  'x264: H264 encoding'
+  'x265: HEVC/H.265 encoder'
+  'zvbi: VBI/Teletext/webcam/v4l2 capture/decoding'
+)
 conflicts=('vlc-plugin')
 replaces=('vlc-plugin')
 options=('!emptydirs')
-source=(https://download.videolan.org/${pkgname}/${_vlcver}/${pkgname}-${_vlcver}${_vlcfixupver}.tar.xz{,.asc}
-        update-vlc-plugin-cache.hook)
+source=(
+  https://download.videolan.org/${pkgname}/${_vlcver}/${pkgname}-${_vlcver}${_vlcfixupver}.tar.xz{,.asc}
+  update-vlc-plugin-cache.hook
+)
 sha512sums=('02e58fb52dd75bf483ac4b298aecf86463b13d4782173d164adba6e4552d9262ff5e2ee1cbe1bce2c8a809801b79f328c6a8c475d34ae62aefaea02ae5ade406'
             'SKIP'
             'b247510ffeadfd439a5dadd170c91900b6cdb05b5ca00d38b1a17c720ffe5a9f75a32e0cb1af5ebefdf1c23c5acc53513ed983a736e8fa30dd8fad237ef49dd3')