summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBooloki2016-02-18 19:15:08 +0100
committerBooloki2016-02-18 19:15:08 +0100
commitbf236ed8d6b56d02b775ad6c5b4ca591eb3b026f (patch)
tree365201856fd7f08070672ed3563aabf49992fe0e
downloadaur-bf236ed8d6b56d02b775ad6c5b4ca591eb3b026f.tar.gz
Initial import
-rw-r--r--.SRCINFO99
-rw-r--r--PKGBUILD106
-rw-r--r--lua53_compat.patch30
-rw-r--r--vlc.install16
4 files changed, 251 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..341b2addf98
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,99 @@
+# Generated by mksrcinfo v8
+# Thu Feb 18 18:14:27 UTC 2016
+pkgbase = vlc-nox
+ pkgdesc = A multi-platform MPEG, VCD/DVD, and DivX player (without X support)
+ pkgver = 2.2.2
+ pkgrel = 1
+ url = http://www.videolan.org/vlc/
+ install = vlc.install
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ license = GPL2
+ makedepends = live-media
+ makedepends = libnotify
+ makedepends = libbluray
+ makedepends = flac
+ makedepends = libdc1394
+ makedepends = libavc1394
+ makedepends = lirc
+ makedepends = libcaca
+ makedepends = librsvg
+ makedepends = portaudio
+ makedepends = libgme
+ makedepends = xosd
+ makedepends = projectm
+ makedepends = twolame
+ makedepends = aalib
+ makedepends = libmtp
+ makedepends = libdvdcss
+ makedepends = libgoom2
+ makedepends = vcdimager
+ makedepends = opus
+ makedepends = libssh2
+ makedepends = mesa
+ depends = a52dec
+ depends = libdvbpsi
+ depends = libxpm
+ depends = libdca
+ depends = libproxy
+ depends = sdl_image
+ depends = libdvdnav
+ depends = libtiger
+ depends = lua
+ depends = libmatroska
+ depends = zvbi
+ depends = taglib
+ depends = libmpcdec
+ depends = ffmpeg
+ depends = faad2
+ depends = libupnp
+ depends = libshout
+ depends = libmad
+ depends = libmpeg2
+ depends = xcb-util-keysyms
+ depends = libtar
+ depends = libxinerama
+ optdepends = avahi: for service discovery using bonjour protocol
+ optdepends = ncurses: for ncurses interface support
+ optdepends = libdvdcss: for decoding encrypted DVDs
+ optdepends = lirc: for lirc plugin
+ optdepends = libavc1394: for devices using the 1394ta AV/C
+ optdepends = libdc1394: for IEEE 1394 plugin
+ optdepends = libva-vdpau-driver: vdpau back-end for nvidia
+ optdepends = libva-intel-driver: back-end for intel cards
+ optdepends = libbluray: for Blu-Ray support
+ optdepends = flac: for Free Lossless Audio Codec plugin
+ optdepends = portaudio: for portaudio support
+ optdepends = twolame: for TwoLAME mpeg2 encoder plugin
+ optdepends = projectm: for ProjectM visualisation plugin
+ optdepends = libcaca: for colored ASCII art video output
+ optdepends = libgme: for libgme plugin
+ optdepends = librsvg: for SVG plugin
+ optdepends = libgoom2: for libgoom plugin
+ optdepends = vcdimager: navigate VCD with libvcdinfo
+ optdepends = aalib: for ASCII art plugin
+ optdepends = libmtp: for MTP devices support
+ optdepends = smbclient: for SMB access plugin
+ optdepends = libcdio: for audio CD playback support
+ optdepends = ttf-freefont: for subtitle font
+ optdepends = ttf-dejavu: for subtitle font
+ optdepends = opus: for opus support
+ optdepends = libssh2: for sftp support
+ optdepends = lua-socket: for http interface
+ conflicts = ${_pkgbase}
+ conflicts = vlc-plugin
+ conflicts = vlc-git
+ replaces = ${_pkgbase}
+ replaces = vlc-plugin
+ replaces = vlc-git
+ 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.2/vlc-2.2.2.tar.xz
+ source = lua53_compat.patch
+ md5sums = f98d60f0f59ef72b6e3407f2ff09bda6
+ md5sums = 96d3b346d9149ffb1b430066dfb6249a
+
+pkgname = vlc-nox
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4fc30b57b68
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,106 @@
+# $Id$
+# Maintainer : Nicolas Perrin <booloki@lokizone.net>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
+# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>
+
+_pkgbase=vlc
+pkgname=vlc-nox
+pkgver=2.2.2
+pkgrel=1
+pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player (without X support)"
+arch=('i686' 'x86_64')
+url="http://www.videolan.org/vlc/"
+license=('LGPL2.1' 'GPL2')
+depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'libproxy'
+ 'sdl_image' 'libdvdnav' 'libtiger' 'lua' 'libmatroska'
+ 'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
+ 'libshout' 'libmad' 'libmpeg2' 'xcb-util-keysyms' 'libtar'
+ 'libxinerama')
+makedepends=('live-media' 'libnotify' 'libbluray' 'flac'
+ 'libdc1394' 'libavc1394' 'lirc' 'libcaca'
+ 'librsvg' 'portaudio' 'libgme' 'xosd' 'projectm'
+ 'twolame' 'aalib' 'libmtp' 'libdvdcss'
+ 'libgoom2' 'vcdimager' 'opus' 'libssh2' 'mesa')
+optdepends=('avahi: for service discovery using bonjour protocol'
+ 'ncurses: for ncurses interface support'
+ 'libdvdcss: for decoding encrypted DVDs'
+ 'lirc: for lirc plugin'
+ 'libavc1394: for devices using the 1394ta AV/C'
+ 'libdc1394: for IEEE 1394 plugin'
+ 'libva-vdpau-driver: vdpau back-end for nvidia'
+ 'libva-intel-driver: back-end for intel cards'
+ 'libbluray: for Blu-Ray support'
+ 'flac: for Free Lossless Audio Codec plugin'
+ 'portaudio: for portaudio support'
+ 'twolame: for TwoLAME mpeg2 encoder plugin'
+ 'projectm: for ProjectM visualisation plugin'
+ 'libcaca: for colored ASCII art video output'
+ 'libgme: for libgme plugin'
+ 'librsvg: for SVG plugin'
+ 'libgoom2: for libgoom plugin'
+ 'vcdimager: navigate VCD with libvcdinfo'
+ 'aalib: for ASCII art plugin'
+ 'libmtp: for MTP devices support'
+ 'smbclient: for SMB access plugin'
+ 'libcdio: for audio CD playback support'
+ 'ttf-freefont: for subtitle font '
+ 'ttf-dejavu: for subtitle font'
+ 'opus: for opus support'
+ 'libssh2: for sftp support'
+ 'lua-socket: for http interface')
+conflicts=('${_pkgbase}' 'vlc-plugin' 'vlc-git')
+replaces=('${_pkgbase}' 'vlc-plugin' 'vlc-git')
+backup=('usr/share/vlc/lua/http/.hosts'
+ 'usr/share/vlc/lua/http/dialogs/.hosts')
+options=('!emptydirs')
+install=${_pkgbase}.install
+source=("http://download.videolan.org/${_pkgbase}/${pkgver}/${_pkgbase}-${pkgver}.tar.xz"
+ "lua53_compat.patch")
+md5sums=('f98d60f0f59ef72b6e3407f2ff09bda6'
+ '96d3b346d9149ffb1b430066dfb6249a')
+
+prepare() {
+ cd "${srcdir}/${_pkgbase}-${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"
+}
+
+build() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-qt \
+ --disable-skins2 \
+ --disable-rpath \
+ --enable-faad \
+ --enable-nls \
+ --enable-lirc \
+ --enable-ncurses \
+ --enable-realrtsp \
+ --enable-aa \
+ --enable-vcdx \
+ --enable-upnp \
+ --enable-opus \
+ --enable-sftp \
+ LUAC=/usr/bin/luac LUA_LIBS="`pkg-config --libs lua`" \
+ RCC=/usr/bin/rcc-qt4
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ 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
+}
diff --git a/lua53_compat.patch b/lua53_compat.patch
new file mode 100644
index 00000000000..aeff7b2fd77
--- /dev/null
+++ b/lua53_compat.patch
@@ -0,0 +1,30 @@
+commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23
+Author: Vinson Lee <vlee@freedesktop.org>
+Date: Thu Feb 5 14:48:53 2015 -0800
+
+ lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
+
+ In Lua 5.3.0, luaL_checkint was deprecated.
+
+ This patch fixes this build error with Lua 5.3.0.
+
+ lua/demux.c: In function ‘vlclua_demux_peek’:
+ lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
+ int n = luaL_checkint( L, 1 );
+ ^
+
+ Signed-off-by: Vinson Lee <vlee@freedesktop.org>
+ Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
+
+diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
+index efd94f1..85c7fc1 100644
+--- a/modules/lua/vlc.h
++++ b/modules/lua/vlc.h
+@@ -38,6 +38,7 @@
+ #include <vlc_stream.h>
+ #include <vlc_demux.h>
+
++#define LUA_COMPAT_APIINTCASTS
+ #define LUA_COMPAT_MODULE
+ #include <lua.h> /* Low level lua C API */
+ #include <lauxlib.h> /* Higher level C API */
diff --git a/vlc.install b/vlc.install
new file mode 100644
index 00000000000..f79bd95377a
--- /dev/null
+++ b/vlc.install
@@ -0,0 +1,16 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ 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
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}