core/vlc/PKGBUILD

107 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
2018-09-01 10:35:48 +08:00
pkgver=3.0.4
pkgrel=1
2018-02-02 06:16:21 +08:00
pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player'
url='https://www.videolan.org/vlc/'
arch=('x86_64')
2016-01-16 09:24:29 +08:00
license=('LGPL2.1' 'GPL2')
depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt5-base' 'qt5-x11extras' 'libproxy' 'qt5-svg'
'sdl_image' 'libdvdnav' 'libtiger' 'lua' 'libmatroska' 'jack2'
'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
2016-01-16 09:24:29 +08:00
'libshout' 'libmad' 'libmpeg2' 'xcb-util-keysyms' 'libtar'
'libxinerama' 'gst-plugins-base-libs')
makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'chromaprint'
'libdc1394' 'libavc1394' 'lirc' 'libcaca' 'qt5-tools'
2016-01-16 09:24:29 +08:00
'librsvg' 'portaudio' 'libgme' 'xosd' 'projectm'
2018-02-02 06:16:21 +08:00
'twolame' 'aalib' 'libmtp' 'libdvdcss' 'smbclient'
'libgoom2' 'vcdimager' 'opus' 'libssh2' 'mesa' 'wayland-protocols')
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'
'kdelibs: KDE Solid hardware integration'
'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'
'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')
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')
source=("http://download.videolan.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
2018-07-01 02:05:11 +08:00
update-vlc-plugin-cache.hook
2018-09-01 10:35:48 +08:00
lua53_compat.patch)
sha1sums=('218603f05ab5f30de0cc87b0ccceb57bb1efcfa4'
'SKIP'
2018-07-01 02:05:11 +08:00
'c3a35ba4dbd6c8e4e5b032664f50b9f0dcf579ee'
2018-09-01 10:35:48 +08:00
'5d7dba23756ff577a90b8631b187fbeac1f94e17')
validpgpkeys=('65F7C6B4206BD057A7EB73787180713BE58D1ADC') # VideoLAN Release Signing Key
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() {
2018-02-02 06:16:21 +08:00
cd ${pkgname}-${pkgver}
2016-01-16 09:24:29 +08:00
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
sed -e 's|-Werror-implicit-function-declaration||g' -i configure
2018-02-02 06:16:21 +08:00
patch -Np1 < "${srcdir}/lua53_compat.patch"
}
build() {
2018-02-02 06:16:21 +08:00
cd ${pkgname}-${pkgver}
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-qt5
2018-02-02 06:16:21 +08:00
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-upnp \
2012-11-17 12:46:32 +08:00
--enable-opus \
--enable-sftp \
--enable-qt
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() {
2016-09-22 05:47:46 +08:00
cd "${pkgname}-${pkgver}"
2018-02-02 06:16:21 +08:00
2012-01-25 08:22:06 +08:00
make DESTDIR="${pkgdir}" install
2018-02-02 06:16:21 +08:00
2010-07-23 04:44:57 +08:00
for res in 16 32 48 128; do
2018-02-02 06:16:21 +08:00
install -Dm 644 "${srcdir}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
2016-09-22 05:47:46 +08:00
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
2015-01-28 21:57:06 +08:00
done
install -Dm 644 "${srcdir}/update-vlc-plugin-cache.hook" -t "${pkgdir}/usr/share/libalpm/hooks"
}