summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2017-07-22 23:04:26 -0300
committerDaniel Bermond2017-07-22 23:04:26 -0300
commit4a66cf238ad776a3cb5bf56fb71e0b8b5bce60c5 (patch)
treef0b2898a942a85f2785dba736c6e26f942f3c727
parent0ec8d1045ac100719c87bf21bd745fcac98af179 (diff)
downloadaur-4a66cf238ad776a3cb5bf56fb71e0b8b5bce60c5.tar.gz
First commit after adoption. Updated to version 2.2.6
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD121
-rw-r--r--update-vlc-plugin-cache.hook17
-rw-r--r--vlc.install18
4 files changed, 95 insertions, 90 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 815e8ee1f369..020de8bfe7b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,10 @@
+# Generated by mksrcinfo v8
+# Sun Jul 23 02:02:30 UTC 2017
pkgbase = vlc-decklink
- pkgdesc = A multi-platform MPEG, VCD/DVD, and DivX player (with decklink module)
- pkgver = 2.2.1
- pkgrel = 7
+ pkgdesc = Multi-platform MPEG, VCD/DVD, and DivX player (with decklink support)
+ pkgver = 2.2.6
+ pkgrel = 1
url = http://www.videolan.org/vlc/
- install = vlc.install
arch = i686
arch = x86_64
license = LGPL2.1
@@ -27,13 +28,14 @@ pkgbase = vlc-decklink
makedepends = aalib
makedepends = libmtp
makedepends = libdvdcss
- makedepends = gnome-vfs
+ makedepends = smbclient
makedepends = libgoom2
makedepends = vcdimager
makedepends = opus
makedepends = libssh2
makedepends = mesa
- makedepends = decklink-sdk
+ makedepends = qt4
+ makedepends = blackmagic-decklink-sdk
depends = a52dec
depends = libdvbpsi
depends = libxpm
@@ -48,7 +50,7 @@ pkgbase = vlc-decklink
depends = zvbi
depends = taglib
depends = libmpcdec
- depends = ffmpeg
+ depends = ffmpeg2.8
depends = faad2
depends = libupnp
depends = libshout
@@ -87,18 +89,19 @@ pkgbase = vlc-decklink
optdepends = opus: for opus support
optdepends = libssh2: for sftp support
optdepends = lua-socket: for http interface
- optdepends = decklink: for decklink support
+ optdepends = qt4: for the GUI
provides = vlc
conflicts = vlc-plugin
conflicts = vlc
+ conflicts = vlc-git
replaces = vlc-plugin
options = !emptydirs
- backup = usr/share/vlc/lua/http/.hosts
- backup = usr/share/vlc/lua/http/dialogs/.hosts
- source = http://download.videolan.org/vlc/2.2.1/vlc-2.2.1.tar.xz
+ source = http://download.videolan.org/vlc/2.2.6/vlc-2.2.6.tar.xz
source = lua53_compat.patch
- md5sums = 42273945758b521c408fabc7fd6d9946
- md5sums = 96d3b346d9149ffb1b430066dfb6249a
+ source = update-vlc-plugin-cache.hook
+ sha256sums = c403d3accd9a400eb2181c958f3e7bc5524fe5738425f4253d42883b425a42a8
+ sha256sums = d1cb88a1037120ea83ef75b2a13039a16825516b776d71597d0e2eae5df2d8fa
+ sha256sums = 4105af8697ac641867a76ddef5f91c69999bf6f980a5681bc36155bbce021f02
pkgname = vlc-decklink
diff --git a/PKGBUILD b/PKGBUILD
index 866d29e1936c..609f3b35b597 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,27 @@
-# $Id: PKGBUILD 246539 2015-09-17 21:02:31Z foutrelis $
-# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>
-_pkgname=vlc
+_srcname=vlc
pkgname=vlc-decklink
-pkgver=2.2.1
-pkgrel=7
-pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player (with decklink module)"
+pkgver=2.2.6
+pkgrel=1
+pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player (with decklink support)'
arch=('i686' 'x86_64')
-url="http://www.videolan.org/vlc/"
+url='http://www.videolan.org/vlc/'
license=('LGPL2.1' 'GPL2')
depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt4' 'libproxy'
'sdl_image' 'libdvdnav' 'libtiger' 'lua' 'libmatroska'
- 'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
+ 'zvbi' 'taglib' 'libmpcdec' 'ffmpeg2.8' 'faad2' 'libupnp'
'libshout' 'libmad' 'libmpeg2' 'xcb-util-keysyms' 'libtar'
'libxinerama')
makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'kdelibs'
'libdc1394' 'libavc1394' 'lirc' 'libcaca' 'gtk2'
'librsvg' 'portaudio' 'libgme' 'xosd' 'projectm'
- 'twolame' 'aalib' 'libmtp' 'libdvdcss' 'gnome-vfs'
- 'libgoom2' 'vcdimager' 'opus' 'libssh2' 'mesa'
- 'decklink-sdk')
+ 'twolame' 'aalib' 'libmtp' 'libdvdcss' 'smbclient'
+ 'libgoom2' 'vcdimager' 'opus' 'libssh2' 'mesa' 'qt4'
+ 'blackmagic-decklink-sdk')
optdepends=('avahi: for service discovery using bonjour protocol'
'libnotify: for notification plugin'
'ncurses: for ncurses interface support'
@@ -52,64 +52,67 @@ optdepends=('avahi: for service discovery using bonjour protocol'
'opus: for opus support'
'libssh2: for sftp support'
'lua-socket: for http interface'
- 'decklink: for decklink support')
-conflicts=('vlc-plugin' 'vlc')
+ 'qt4: for the GUI')
provides=('vlc')
+conflicts=('vlc-plugin' 'vlc' 'vlc-git')
replaces=('vlc-plugin')
-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"
- "lua53_compat.patch")
-md5sums=('42273945758b521c408fabc7fd6d9946'
- '96d3b346d9149ffb1b430066dfb6249a')
+source=("http://download.videolan.org/${_srcname}/${pkgver}/${_srcname}-${pkgver}.tar.xz"
+ 'lua53_compat.patch'
+ 'update-vlc-plugin-cache.hook')
+sha256sums=('c403d3accd9a400eb2181c958f3e7bc5524fe5738425f4253d42883b425a42a8'
+ 'd1cb88a1037120ea83ef75b2a13039a16825516b776d71597d0e2eae5df2d8fa'
+ '4105af8697ac641867a76ddef5f91c69999bf6f980a5681bc36155bbce021f02')
prepare() {
- cd "${srcdir}/${_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
-
- patch -p1 < "${srcdir}/lua53_compat.patch"
-
- # dirty hack because of VLC's configure
- [ -d decklink-sdk ] || mkdir decklink-sdk
- ln -sf /usr/src/decklink-sdk decklink-sdk/include
+ cd "${_srcname}-${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
+
+ patch -Np1 -i "${srcdir}/lua53_compat.patch"
}
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --disable-rpath \
- --enable-faad \
- --enable-nls \
- --enable-lirc \
- --enable-ncurses \
- --enable-realrtsp \
- --enable-aa \
- --enable-vcdx \
- --enable-upnp \
- --enable-opus \
- --enable-sftp \
- --enable-decklink \
- --with-decklink-sdk="${srcdir}/${_pkgname}-${pkgver}/decklink-sdk" \
- LUAC=/usr/bin/luac LUA_LIBS="`pkg-config --libs lua`" \
- RCC=/usr/bin/rcc-qt4
-
- make
+ cd "${_srcname}-${pkgver}"
+
+ export PKG_CONFIG_PATH='/usr/lib/ffmpeg2.8/pkgconfig'
+ export CFLAGS+=' -I/usr/include/samba-4.0'
+ export CPPFLAGS+=' -I/usr/include/samba-4.0'
+ export CXXFLAGS+=' -std=c++11'
+ export LUAC='/usr/bin/luac'
+ export LUA_LIBS="$(pkg-config --libs lua)"
+ export RCC='/usr/bin/rcc-qt4'
+
+ ./configure \
+ --prefix='/usr' \
+ --sysconfdir='/etc' \
+ --disable-rpath \
+ --enable-faad \
+ --enable-nls \
+ --enable-lirc \
+ --enable-ncurses \
+ --enable-realrtsp \
+ --enable-aa \
+ --enable-vcdx \
+ --enable-upnp \
+ --enable-opus \
+ --enable-sftp \
+ --enable-decklink
+
+ make
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}" install
+ cd "${_srcname}-${pkgver}"
- for res in 16 32 48 128; do
- 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
+ make DESTDIR="${pkgdir}" install
+
+ for _res in 16 32 48 128
+ do
+ 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 -D -m644 "${srcdir}/update-vlc-plugin-cache.hook" -t "${pkgdir}/usr/share/libalpm/hooks"
}
diff --git a/update-vlc-plugin-cache.hook b/update-vlc-plugin-cache.hook
new file mode 100644
index 000000000000..f767242671ab
--- /dev/null
+++ b/update-vlc-plugin-cache.hook
@@ -0,0 +1,17 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+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
+Exec = /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
diff --git a/vlc.install b/vlc.install
deleted file mode 100644
index dc4961caee92..000000000000
--- a/vlc.install
+++ /dev/null
@@ -1,18 +0,0 @@
-post_install() {
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
- update-desktop-database -q
-}
-
-post_upgrade() {
- post_install
-}
-
-pre_remove() {
- rm -f usr/lib/vlc/plugins/plugins-*.dat
-}
-
-post_remove() {
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- update-desktop-database -q
-}