From 9c4f08a039571a5cdbaadce10075bf9cc9099c36 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 12 Jan 2026 14:08:34 +0200 Subject: [PATCH] Add bpm hook for update the vlc plugin cache and update source.sh --- pkg.info | 2 +- source-files/update-vlc-plugin-cache.bpmhook | 4 ++ source.sh | 76 +++++++++++++++++++- 3 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 source-files/update-vlc-plugin-cache.bpmhook diff --git a/pkg.info b/pkg.info index 6fef8cf..0c7b7e7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: vlc description: Free and open source cross-platform multimedia player and framework version: 3.0.23 -revision: 4 +revision: 5 url: https://www.videolan.org/vlc/ license: GPL2-or-later,LGPL2.1-or-later architecture: any diff --git a/source-files/update-vlc-plugin-cache.bpmhook b/source-files/update-vlc-plugin-cache.bpmhook new file mode 100644 index 0000000..0539a14 --- /dev/null +++ b/source-files/update-vlc-plugin-cache.bpmhook @@ -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" diff --git a/source.sh b/source.sh index 2262baa..9d3671f 100644 --- a/source.sh +++ b/source.sh @@ -5,7 +5,74 @@ # The build function is executed in the source directory # This function is used to compile the source code 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 } @@ -42,6 +109,13 @@ package_vlc() { } 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 -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc }