Add bpm hook for update the vlc plugin cache and update source.sh

This commit is contained in:
2026-01-12 14:08:34 +02:00
parent 17e11f96f4
commit 9c4f08a039
3 changed files with 80 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: vlc name: vlc
description: Free and open source cross-platform multimedia player and framework description: Free and open source cross-platform multimedia player and framework
version: 3.0.23 version: 3.0.23
revision: 4 revision: 5
url: https://www.videolan.org/vlc/ url: https://www.videolan.org/vlc/
license: GPL2-or-later,LGPL2.1-or-later license: GPL2-or-later,LGPL2.1-or-later
architecture: any architecture: any
@@ -0,0 +1,4 @@
trigger_operations: ["install", "upgrade", "remove"]
target_type: "path"
targets: ["usr/lib/vlc/plugins/*"]
run: "/usr/lib/vlc/vlc-cache-gen /usr/lib/vlc/plugins"
+75 -1
View File
@@ -5,7 +5,74 @@
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
BUILDCC=gcc ./configure --prefix=/usr --prefix=/usr --disable-libplacebo BUILDCC=gcc ./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-chromaprint \
--disable-fdkaac \
--disable-libgcrypt \
--disable-libplacebo \
--disable-opencv \
--disable-rpath \
--disable-schroedinger \
--disable-update-check \
--enable-aa \
--enable-alsa \
--enable-aom \
--enable-archive \
--enable-aribsub \
--enable-avahi \
--enable-avcodec \
--enable-avformat \
--enable-chromecast \
--enable-dav1d \
--enable-flac \
--enable-fontconfig \
--enable-freetype \
--enable-fribidi \
--enable-gnutls \
--enable-gst-decode \
--enable-harfbuzz \
--enable-jack \
--enable-jpeg \
--enable-kwallet \
--enable-libass \
--enable-libva \
--enable-libxml2 \
--enable-mad \
--enable-mpc \
--enable-mpg123 \
--enable-mtp \
--enable-ncurses \
--enable-nfs \
--enable-nls \
--enable-notify \
--enable-ogg \
--enable-oggspots \
--enable-opus \
--enable-png \
--enable-postproc \
--enable-pulse \
--enable-qt \
--enable-samplerate \
--enable-sdl-image \
--enable-secret \
--enable-sftp \
--enable-skins2 \
--enable-speex \
--enable-svg \
--enable-svgdec \
--enable-taglib \
--enable-vcd \
--enable-vdpau \
--enable-vlc \
--enable-vorbis \
--enable-vpx \
--enable-x264 \
--enable-x265 \
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
@@ -42,6 +109,13 @@ package_vlc() {
} }
package_libvlc() { package_libvlc() {
# Install BPM hook
install -Dm644 "$BPM_WORKDIR"/update-vlc-plugin-cache.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/update-vlc-plugin-cache.bpmhook
# Create empty plugin cache
install -d "$BPM_OUTPUT"/usr/lib/vlc/plugins
touch "$BPM_OUTPUT"/usr/lib/vlc/plugins/plugins.dat
# Install package license # Install package license
install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc
} }