[arch-commits] Commit in vlc/trunk (PKGBUILD update-vlc-plugin-cache.hook)

2020-04-26 Thread Andreas Radke via arch-commits
Date: Sunday, April 26, 2020 @ 11:37:55
  Author: andyrtr
Revision: 381609

upgpkg: vlc 3.0.9.2-2: alpm-hooks should use Type = Path, not File

Modified:
  vlc/trunk/PKGBUILD
  vlc/trunk/update-vlc-plugin-cache.hook

--+
 PKGBUILD |4 ++--
 update-vlc-plugin-cache.hook |2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-26 11:31:37 UTC (rev 381608)
+++ PKGBUILD2020-04-26 11:37:55 UTC (rev 381609)
@@ -8,7 +8,7 @@
 # optional fixup version including hyphen
 _vlcfixupver=
 pkgver=${_vlcver}${_vlcfixupver//-/.r}
-pkgrel=1
+pkgrel=2
 pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player'
 url='https://www.videolan.org/vlc/'
 arch=('x86_64')
@@ -100,7 +100,7 @@
 lua53_compat.patch)
 
sha512sums=('c1009871449b3547ee8fec0c6e95fcf8f7b0328aa85c0c9670aa38ce11d083bae74584ec501b131232cd00fda707d6269ffa5f42c95aa04fe84b44045ca44409'
 'SKIP'
-
'80357bae69e32b353d3784932d854e294906798e14faffb87c3383c3b6f6bdc57cbabb9c6e3f3c1adf0f8ddbb24153e72104c963cf1934970c2983c96daef9df'
+
'b247510ffeadfd439a5dadd170c91900b6cdb05b5ca00d38b1a17c720ffe5a9f75a32e0cb1af5ebefdf1c23c5acc53513ed983a736e8fa30dd8fad237ef49dd3'
 
'33cda373aa1fb3ee19a78748e2687f2b93c8662c9fda62ecd122a2e649df8edaceb54dda3991bc38c80737945a143a9e65baa2743a483bb737bb94cd590dc25f')
 validpgpkeys=('65F7C6B4206BD057A7EB73787180713BE58D1ADC') # VideoLAN Release 
Signing Key
 

Modified: update-vlc-plugin-cache.hook
===
--- update-vlc-plugin-cache.hook2020-04-26 11:31:37 UTC (rev 381608)
+++ update-vlc-plugin-cache.hook2020-04-26 11:37:55 UTC (rev 381609)
@@ -1,5 +1,5 @@
 [Trigger]
-Type = File
+Type = Path
 Operation = Install
 Operation = Upgrade
 Operation = Remove


[arch-commits] Commit in vlc/trunk (PKGBUILD update-vlc-plugin-cache.hook)

2016-11-03 Thread Antonio Rojas
Date: Thursday, November 3, 2016 @ 19:32:16
  Author: arojas
Revision: 279813

Trigger plugin cache update when installing qt4 (FS#51541)

Modified:
  vlc/trunk/PKGBUILD
  vlc/trunk/update-vlc-plugin-cache.hook

--+
 PKGBUILD |4 ++--
 update-vlc-plugin-cache.hook |6 ++
 2 files changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-03 19:24:38 UTC (rev 279812)
+++ PKGBUILD2016-11-03 19:32:16 UTC (rev 279813)
@@ -5,7 +5,7 @@
 
 pkgname=vlc
 pkgver=2.2.4
-pkgrel=4
+pkgrel=5
 pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
 arch=('i686' 'x86_64')
 url="http://www.videolan.org/vlc/";
@@ -62,7 +62,7 @@
 validpgpkeys=(65F7C6B4206BD057A7EB73787180713BE58D1ADC) # VideoLAN Release 
Signing Key
 md5sums=('55666c9898f658c7fcca12725bf7dd1b'
  'SKIP'
- '6fdaca3aa56c0676e9c88049b8650324'
+ '6449d0d26bd34bca009eed58a4c20c83'
  '96d3b346d9149ffb1b430066dfb6249a')
 
 prepare() {

Modified: update-vlc-plugin-cache.hook
===
--- update-vlc-plugin-cache.hook2016-11-03 19:24:38 UTC (rev 279812)
+++ update-vlc-plugin-cache.hook2016-11-03 19:32:16 UTC (rev 279813)
@@ -5,6 +5,12 @@
 Operation = Remove
 Target = usr/lib/vlc/plugins/*
 
+[Trigger]
+Type = Package
+Operation = Install
+Operation = Remove
+Target = qt4
+
 [Action]
 Description = Updating the vlc plugin cache...
 When = PostTransaction


[arch-commits] Commit in vlc/trunk (PKGBUILD update-vlc-plugin-cache.hook vlc.install)

2016-05-22 Thread Antonio Rojas
Date: Sunday, May 22, 2016 @ 23:19:13
  Author: arojas
Revision: 268494

Use a hook to update the plugin cache, should fix crashes in KDE when the cache 
becomes outdated after installing external plugins

Added:
  vlc/trunk/update-vlc-plugin-cache.hook
Modified:
  vlc/trunk/PKGBUILD
Deleted:
  vlc/trunk/vlc.install

--+
 PKGBUILD |   16 +---
 update-vlc-plugin-cache.hook |   11 +++
 vlc.install  |   11 ---
 3 files changed, 20 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-22 20:48:59 UTC (rev 268493)
+++ PKGBUILD2016-05-22 21:19:13 UTC (rev 268494)
@@ -5,7 +5,7 @@
 
 pkgname=vlc
 pkgver=2.2.3
-pkgrel=2
+pkgrel=3
 pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
 arch=('i686' 'x86_64')
 url="http://www.videolan.org/vlc/";
@@ -57,16 +57,16 @@
 backup=('usr/share/vlc/lua/http/.hosts'
 'usr/share/vlc/lua/http/dialogs/.hosts')
 options=('!emptydirs')
-install=vlc.install
 
source=("http://download.videolan.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
-"lua53_compat.patch")
+update-vlc-plugin-cache.hook "lua53_compat.patch")
 validpgpkeys=(65F7C6B4206BD057A7EB73787180713BE58D1ADC) # VideoLAN Release 
Signing Key
 md5sums=('ecbc65be549e5cc83e4cbe0129e66dcd'
  'SKIP'
+ '6fdaca3aa56c0676e9c88049b8650324'
  '96d3b346d9149ffb1b430066dfb6249a')
 
 prepare() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
 
   sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
   sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
@@ -75,10 +75,10 @@
 }
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
 
   PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" \
-  CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
+  CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" 
CXXFLAGS+=" -std=gnu++98" \
   ./configure --prefix=/usr \
   --sysconfdir=/etc \
   --disable-rpath \
@@ -99,7 +99,7 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
 
   make DESTDIR="${pkgdir}" install
 
@@ -107,4 +107,6 @@
 install -D -m644 
"${srcdir}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
  
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
   done
+
+  install -Dm644 "$srcdir"/update-vlc-plugin-cache.hook 
"$pkgdir"/usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
 }

Added: update-vlc-plugin-cache.hook
===
--- update-vlc-plugin-cache.hook(rev 0)
+++ update-vlc-plugin-cache.hook2016-05-22 21:19:13 UTC (rev 268494)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/vlc/plugins/*
+
+[Action]
+Description = Updating the vlc plugin cache...
+When = PostTransaction
+Exec = /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins

Deleted: vlc.install
===
--- vlc.install 2016-05-22 20:48:59 UTC (rev 268493)
+++ vlc.install 2016-05-22 21:19:13 UTC (rev 268494)
@@ -1,11 +0,0 @@
-post_install() {
-usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
-}
-
-post_upgrade() {
-post_install
-}
-
-pre_remove() {
-rm -f usr/lib/vlc/plugins/plugins-*.dat
-}