blob: c76b4277491c13a781387f82285f687da599e8b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Maintainer : Andrew Crerar <andrew (dot) crerar at gmail>
# Contributor: Rob McCathie <korrode at gmail>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>
# Contributor: heaven <aheaven87 at gmail dot com>
# Contributor: graysky <graysky at archlinux dot us>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: MacWolf <macwolf at archlinux dot de>
_name=vlc
pkgname=vlc-git
pkgver=3.0.0.r10880.gc12d9fb6a7
pkgrel=1
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player (GIT Version)"
arch=('i686' 'x86_64')
url="http://www.videolan.org/vlc/"
license=('LGPLv2.1' 'GPLv3')
depends=('a52dec' 'faad2' 'ffmpeg' 'libdca' 'libdvbpsi'
'libdvdnav' 'libmad' 'libmatroska' 'libmpcdec' 'libmpeg2'
'libproxy' 'libshout' 'libtar' 'libtiger' 'libupnp'
'libxinerama' 'libxpm' 'lua' 'sdl_image'
'taglib' 'xcb-util-keysyms' 'zvbi')
makedepends=('aalib' 'flac' 'git' 'kdelibs'
'libavc1394' 'libbluray' 'libcaca' 'libdc1394' 'libdvdcss'
'libgme' 'libgoom2' 'libmtp' 'libnotify' 'librsvg'
'libssh2' 'lirc' 'live-media' 'mesa' 'opus'
'portaudio' 'projectm' 'twolame' 'vcdimager' 'xosd' 'qt5-base' 'smbclient')
optdepends=('aalib: for ASCII art plugin'
'avahi: for service discovery using bonjour protocol'
'flac: for Free Lossless Audio Codec plugin'
'kdelibs: KDE Solid hardware integration'
'libavc1394: for devices using the 1394ta AV/C'
'libbluray: for Blu-Ray support'
'libcaca: for colored ASCII art video output'
'libcdio: for audio CD playback support'
'libdc1394: for IEEE 1394 plugin'
'libdvdcss: for decoding encrypted DVDs'
'libgme: for libgme plugin'
'libgoom2: for libgoom plugin'
'libmtp: for MTP devices support'
'libnotify: for notification plugin'
'librsvg: for SVG plugin'
'libssh2: for sftp support'
'libva-intel-driver: back-end for intel cards'
'libva-vdpau-driver: vdpau back-end for nvidia'
'lirc: for lirc plugin'
'lua-socket: for http interface'
'ncurses: for ncurses interface support'
'opus: for opus support'
'portaudio: for portaudio support'
'projectm: for ProjectM visualisation plugin'
'smbclient: for SMB access plugin'
'ttf-dejavu: for subtitle font'
'ttf-freefont: for subtitle font'
'twolame: for TwoLAME mpeg2 encoder plugin'
'vcdimager: navigate VCD with libvcdinfo')
conflicts=("${_name}" 'vlc-dev' 'vlc-plugin' 'vlc-stable-git')
provides=("${_name}=${pkgver}")
backup=('usr/share/vlc/lua/http/.hosts'
'usr/share/vlc/lua/http/dialogs/.hosts')
options=('!emptydirs')
install="${_name}.install"
source=('git://git.videolan.org/vlc.git'
'lua53_compat.patch')
sha512sums=('SKIP'
'33cda373aa1fb3ee19a78748e2687f2b93c8662c9fda62ecd122a2e649df8edaceb54dda3991bc38c80737945a143a9e65baa2743a483bb737bb94cd590dc25f')
pkgver() {
cd "${srcdir}/${_name}"
printf "%s.r%s.g%s\n" "$(grep 'AC_INIT' configure.ac | sed 's/[^0-9\.]*//g')" "$(git describe --tags --long | cut -d '-' -f 3)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_name}"
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
patch -p1 -i "${srcdir}/lua53_compat.patch"
}
build() {
cd "${srcdir}/${_name}"
./bootstrap
CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
./configure --disable-rpath \
--enable-aa \
--enable-faad \
--enable-lirc \
--enable-ncurses \
--enable-nls \
--enable-opus \
--enable-realrtsp \
--enable-sftp \
--enable-upnp \
--enable-vcdx \
--prefix=/usr \
--sysconfdir=/etc \
LUAC=/usr/bin/luac LUA_LIBS="`pkg-config --libs lua`" \
RCC=/usr/bin/rcc-qt4
make
}
package() {
cd "${srcdir}/${_name}"
make DESTDIR="${pkgdir}" install
for res in 16 32 48 128; do
install -D -m644 "${srcdir}/${_name}/share/icons/${res}x${res}/vlc.png" \
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
done
}
|