core/vlc/PKGBUILD

111 lines
4.2 KiB
Bash
Raw Normal View History

2013-08-29 20:50:37 +08:00
# Contributions from ArchLinux: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/vlc
2010-03-14 23:48:48 +08:00
2012-10-19 13:07:47 +08:00
pkgname=vlc
2015-04-14 08:20:47 +08:00
pkgver=2.2.1
pkgrel=11
2016-01-16 09:24:29 +08:00
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.videolan.org/vlc/"
2016-01-16 09:24:29 +08:00
license=('LGPL2.1' 'GPL2')
depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt5-base' 'qt5-x11extras' 'libproxy'
2016-01-16 09:24:29 +08:00
'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'
'fluidsynth' 'chromaprint')
2016-01-16 09:24:29 +08:00
optdepends=('avahi: for service discovery using bonjour protocol'
'libnotify: for notification plugin'
'ncurses: for ncurses interface support'
'libdvdcss: for decoding encrypted DVDs'
'lirc: for lirc plugin'
2011-12-22 03:30:12 +08:00
'libavc1394: for devices using the 1394ta AV/C'
'libdc1394: for IEEE 1394 plugin'
'libva-vdpau-driver: vdpau back-end for nvidia'
2016-01-16 09:24:29 +08:00
'libva-intel-driver: back-end for intel cards'
'libbluray: for Blu-Ray support'
'flac: for Free Lossless Audio Codec plugin'
'portaudio: for portaudio support'
2016-01-16 09:24:29 +08:00
'twolame: for TwoLAME mpeg2 encoder plugin'
'projectm: for ProjectM visualisation plugin'
'fluidsynth: for fluidsynth plugin'
'chromaprint: for chromaprint plugin'
2016-01-16 09:24:29 +08:00
'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'
2013-11-21 22:49:47 +08:00
'smbclient: for SMB access plugin'
2016-01-16 09:24:29 +08:00
'libcdio: for audio CD playback support'
'ttf-freefont: for subtitle font '
2016-01-16 09:24:29 +08:00
'ttf-dejavu: for subtitle font'
'opus: for opus support'
'libssh2: for sftp support'
'lua-socket: for http interface')
conflicts=('vlc-plugin')
replaces=('vlc-plugin')
backup=('usr/share/vlc/lua/http/.hosts'
2011-12-22 03:30:12 +08:00
'usr/share/vlc/lua/http/dialogs/.hosts')
2012-03-06 22:42:55 +08:00
categories=('multimedia')
2014-08-26 03:02:08 +08:00
options=('!emptydirs')
2012-01-25 08:22:06 +08:00
install="vlc.install"
2015-12-21 06:35:16 +08:00
source=("http://download.videolan.org/pub/videolan/${pkgname}/${pkgver/.a}/${pkgname}-${pkgver/.a/a}.tar.xz"
'vlc-2.2.1-CVE-2015-5949.patch')
sha1sums=('ee8535c5966217bc2069a74c1d4e8c32609656e9'
'43c5ac8ae6a24228bc6219f027d0edb215f1c62b')
2013-12-11 09:29:14 +08:00
screenshot='http://images1.videolan.org/vlc/screenshots/0.9.2/screenshot-kde4.jpg'
2010-03-14 23:48:48 +08:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver/.a}"
2015-01-12 07:07:09 +08:00
patch -p1 -i $srcdir/vlc-2.2.1-CVE-2015-5949.patch
2015-12-21 06:35:16 +08:00
2016-01-16 09:24:29 +08:00
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
2015-01-12 07:07:09 +08:00
2016-01-16 09:24:29 +08:00
autoreconf -fi
}
build() {
cd "${srcdir}/${pkgname}-${pkgver/.a}"
2013-11-21 22:49:47 +08:00
2015-01-12 07:07:09 +08:00
CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr \
--sysconfdir=/etc \
2010-03-14 23:48:48 +08:00
--disable-rpath \
--enable-faad \
--enable-nls \
--enable-lirc \
--enable-ncurses \
--enable-realrtsp \
2016-01-16 09:24:29 +08:00
--enable-aa \
--enable-vcdx \
--enable-upnp \
2012-11-17 12:46:32 +08:00
--enable-opus \
--enable-sftp \
--disable-opencv \
--disable-notify \
--with-kde-solid=/usr/share/solid/actions \
--with-x
2015-01-28 21:57:06 +08:00
LUAC=/usr/bin/luac LUA_LIBS="`pkg-config --libs lua`"
2010-07-23 04:44:57 +08:00
make
2010-03-14 23:48:48 +08:00
}
2012-01-25 08:22:06 +08:00
2011-12-22 03:30:12 +08:00
package() {
cd "${srcdir}/${pkgname}-${pkgver/.a}"
2010-03-14 23:48:48 +08:00
2012-01-25 08:22:06 +08:00
make DESTDIR="${pkgdir}" install
2010-07-23 04:44:57 +08:00
for res in 16 32 48 128; do
install -D -m644 "${srcdir}/vlc-${pkgver/.a}/share/icons/${res}x${res}/vlc.png" \
2011-12-22 03:30:12 +08:00
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
2015-01-28 21:57:06 +08:00
done
}