vlc 3.0.3

removed .install file and addded new hook #78
This commit is contained in:
AlmAck 2018-06-30 18:30:45 +02:00
parent 76ec4a8c8f
commit 7c3c7aa56e
4 changed files with 29 additions and 25 deletions

View File

@ -1,8 +1,8 @@
# Contributions from ArchLinux: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/vlc
pkgname=vlc
pkgver=3.0.2
pkgrel=2
pkgver=3.0.3
pkgrel=1
pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player'
url='https://www.videolan.org/vlc/'
arch=('x86_64')
@ -50,10 +50,9 @@ backup=('usr/share/vlc/lua/http/.hosts'
'usr/share/vlc/lua/http/dialogs/.hosts')
categories=('multimedia')
options=('!emptydirs')
install="vlc.install"
source=("http://download.videolan.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
lua53_compat.patch)
sha1sums=('9e50c246242cd1dd94a8534b9be11c13104bb76d'
sha1sums=('dd1b7350bb0a7848e172e9dbbe0705ec5bb3d48c'
'SKIP'
'5d7dba23756ff577a90b8631b187fbeac1f94e17')
validpgpkeys=('65F7C6B4206BD057A7EB73787180713BE58D1ADC') # VideoLAN Release Signing Key
@ -62,7 +61,9 @@ screenshot='http://images1.videolan.org/vlc/screenshots/0.9.2/screenshot-kde4.jp
prepare() {
cd ${pkgname}-${pkgver}
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
sed -e 's|-Werror-implicit-function-declaration||g' -i configure
patch -Np1 < "${srcdir}/lua53_compat.patch"
patch -Np1 < "${srcdir}/vlc-qt5.11.patch"
}
build() {
@ -73,6 +74,7 @@ build() {
export CXXFLAGS+=" -std=c++11"
export LUAC=/usr/bin/luac
export LUA_LIBS="$(pkg-config --libs lua)"
export RCC=/usr/bin/rcc-qt5
./configure --prefix=/usr \
--sysconfdir=/etc \
@ -86,8 +88,7 @@ build() {
--enable-upnp \
--enable-opus \
--enable-sftp \
--enable-qt \
RCC=/usr/bin/rcc-qt5
--enable-qt
make
}
@ -100,6 +101,5 @@ package() {
install -Dm 644 "${srcdir}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
done
install -Dm 644 "${srcdir}/update-vlc-plugin-cache.hook" -t "${pkgdir}/usr/share/libalpm/hooks"
}
# vim: ts=2 sw=2 et:

View File

@ -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 /usr/lib/vlc/plugins

10
vlc/vlc-qt5.11.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/modules/gui/qt/components/simple_preferences.cpp 2018-01-25 17:57:40.000000000 +0100
+++ b/modules/gui/qt/components/simple_preferences.cpp 2018-03-18 21:08:51.212556781 +0100
@@ -33,6 +33,7 @@
#include <vlc_config_cat.h>
#include <vlc_configuration.h>
+#include <QButtonGroup>
#include <QString>
#include <QFont>
#include <QToolButton>

View File

@ -1,17 +0,0 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
LD_PRELOAD=/usr/lib/libgobject-2.0.so.0 usr/lib/vlc/vlc-cache-gen usr/lib/vlc/plugins
update-desktop-database -q &>/dev/null
}
post_upgrade() {
post_install
}
pre_remove() {
rm -f usr/lib/vlc/plugins/plugins-*.dat
}
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}