2017-10-18 21:53:08 +02:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sebastian Weiland <sebastianweiland97@gmail.com>
|
|
|
|
# Contributor: Martchus <martchus@gmx.net>
|
|
|
|
# Original package: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
|
|
|
|
|
|
|
|
_appname_=vlc
|
|
|
|
pkgname=${_appname_}-nightly
|
2018-02-28 18:04:38 +01:00
|
|
|
pkgver=4.0.0v20180228
|
2017-11-30 20:52:20 +01:00
|
|
|
_pkgver=4.0.0
|
2018-02-28 18:04:38 +01:00
|
|
|
_snapshot_=20180228
|
|
|
|
_snapver_=0238
|
2017-12-09 21:24:30 +01:00
|
|
|
_suffix_=dev
|
2017-10-18 21:53:08 +02:00
|
|
|
_nightly_=${_snapshot_}-${_snapver_}
|
|
|
|
pkgrel=1
|
2017-11-30 20:52:20 +01:00
|
|
|
pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player - nightly snapshot'
|
|
|
|
url='https://www.videolan.org/vlc/'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('LGPL2.1' 'GPL2')
|
2017-10-18 21:53:08 +02:00
|
|
|
_undetected_depends=()
|
2018-02-25 19:06:42 +01:00
|
|
|
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' 'wayland-protocols' 'libsecret' 'libarchive'
|
|
|
|
'qt5-base' 'qt5-x11extras' 'qt5-svg' "${_detected_depends[@]}")
|
|
|
|
makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'kdelibs' 'libdc1394'
|
|
|
|
'libavc1394' 'lirc' 'libcaca' 'gtk3' 'librsvg' 'portaudio'
|
|
|
|
'libgme' 'xosd' 'projectm' 'twolame' 'aalib' 'libmtp' 'libdvdcss'
|
|
|
|
'smbclient' 'libgoom2' 'vcdimager' 'opus' 'libssh2' 'mesa' 'protobuf'
|
|
|
|
'opencv' 'libnfs' 'mpg123' 'schroedinger' 'gst-plugins-base-libs'
|
|
|
|
'sidplay2-libs' 'libfdk-aac' 'daala-git' 'sndio')
|
|
|
|
optdepends=('avahi: for service discovery using bonjour protocol'
|
|
|
|
'libnotify: notification plugin'
|
|
|
|
'gtk3: notification plugin'
|
|
|
|
'ncurses: for ncurses interface support'
|
|
|
|
'gst-plugins-base-libs: for libgst plugins'
|
|
|
|
'libdvdcss: for decoding encrypted DVDs'
|
|
|
|
'lirc: lirc control plugin'
|
2017-10-18 21:53:08 +02:00
|
|
|
'libavc1394: for devices using the 1394ta AV/C'
|
2018-02-25 19:06:42 +01:00
|
|
|
'libdc1394: for IEEE 1394 plugin'
|
|
|
|
'kdelibs: KDE Solid hardware integration'
|
|
|
|
'libva-vdpau-driver: vdpau back-end for nvidia'
|
|
|
|
'libva-intel-driver: back-end for intel cards'
|
2017-10-18 21:53:08 +02:00
|
|
|
'libbluray: for Blu-Ray support'
|
2018-02-25 19:06:42 +01:00
|
|
|
'flac: for Free Lossless Audio Codec plugin'
|
|
|
|
'portaudio: portaudio support'
|
|
|
|
'twolame: for TwoLAME mpeg2 encoder plugin'
|
|
|
|
'projectm: for ProjectM visualisation plugin'
|
2017-10-18 21:53:08 +02:00
|
|
|
'libcaca: for colored ASCII art video output'
|
|
|
|
'libgme: for libgme plugin'
|
2018-02-25 19:06:42 +01:00
|
|
|
'librsvg: for SVG plugin'
|
2017-10-18 21:53:08 +02:00
|
|
|
'libgoom2: for libgoom plugin'
|
2018-02-25 19:06:42 +01:00
|
|
|
'vcdimager: navigate VCD with libvcdinfo'
|
|
|
|
'aalib: for ASCII art plugin'
|
2017-10-18 21:53:08 +02:00
|
|
|
'libmtp: for MTP devices support'
|
|
|
|
'smbclient: for SMB access plugin'
|
2018-02-25 19:06:42 +01:00
|
|
|
'libcdio: for audio CD playback support'
|
2017-10-18 21:53:08 +02:00
|
|
|
'ttf-freefont: for subtitle font'
|
2018-02-25 19:06:42 +01:00
|
|
|
'ttf-dejavu: for subtitle font'
|
|
|
|
'opus: for opus support'
|
|
|
|
'libssh2: for sftp support'
|
|
|
|
'opencv: opencv video support'
|
|
|
|
'libnfs: NFS access support'
|
|
|
|
'mpg123: mpg123 codec support'
|
|
|
|
'schroedinger: schroedinger codec support'
|
|
|
|
'protobuf: chromecast support'
|
|
|
|
'lua-socket: for http interface'
|
|
|
|
'sidplay2-libs: for C64 sid demuxer'
|
|
|
|
'libfdk-aac: for FDK-AAC Audio encoder'
|
|
|
|
'daala-git: for Daala video support'
|
|
|
|
'sndio: for OpenBSD sndio audio output')
|
2017-10-18 21:53:08 +02:00
|
|
|
conflicts=("${_appname_}-plugin" "${_appname_}")
|
|
|
|
provides=("${_appname_}")
|
|
|
|
replaces=("${_appname_}-plugin")
|
2017-11-30 20:52:20 +01:00
|
|
|
options=('!emptydirs')
|
2017-12-09 21:24:30 +01:00
|
|
|
source=("http://nightlies.videolan.org/build/source/vlc-${_pkgver}-${_nightly_}-${_suffix_}.tar.xz"
|
2017-10-18 21:53:08 +02:00
|
|
|
'update-vlc-plugin-cache.hook'
|
2018-02-25 19:06:42 +01:00
|
|
|
'lua53_compat.patch'
|
|
|
|
'fribidi_compat.patch'
|
2017-10-18 21:53:08 +02:00
|
|
|
'find-deps.py')
|
|
|
|
|
|
|
|
pkgver() {
|
2017-11-30 20:52:20 +01:00
|
|
|
printf ${_pkgver}v$_snapshot_
|
2017-10-18 21:53:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2017-12-09 21:24:30 +01:00
|
|
|
cd "${_appname_}-${_pkgver}-${_suffix_}"
|
2017-10-18 21:53:08 +02:00
|
|
|
|
|
|
|
./bootstrap
|
|
|
|
|
2018-02-25 19:06:42 +01:00
|
|
|
patch -Np1 -i "${srcdir}/lua53_compat.patch"
|
|
|
|
patch -Np1 -i "${srcdir}/fribidi_compat.patch"
|
2017-10-18 21:53:08 +02:00
|
|
|
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
|
|
|
|
sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype/freetype.c
|
2018-02-25 19:06:42 +01:00
|
|
|
sed 's|whoami|echo builduser|g' -i configure
|
|
|
|
sed 's|hostname -f|echo arch|g' -i configure
|
2017-10-18 21:53:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-12-09 21:24:30 +01:00
|
|
|
cd "${_appname_}-${_pkgver}-${_suffix_}"
|
2017-10-18 21:53:08 +02:00
|
|
|
|
|
|
|
export CFLAGS+=" -I/usr/include/samba-4.0"
|
|
|
|
export CPPFLAGS+=" -I/usr/include/samba-4.0"
|
|
|
|
export CXXFLAGS+=" -std=gnu++11"
|
|
|
|
export LUAC=/usr/bin/luac
|
|
|
|
export LUA_LIBS="`pkg-config --libs lua`"
|
|
|
|
export RCC=/usr/bin/rcc-qt5
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2018-02-25 19:06:42 +01:00
|
|
|
--libexecdir=/usr/lib \
|
2017-10-18 21:53:08 +02:00
|
|
|
--disable-rpath \
|
2018-02-25 19:06:42 +01:00
|
|
|
--enable-aa \
|
|
|
|
--enable-archive \
|
|
|
|
--enable-bluray \
|
|
|
|
--enable-daala \
|
2017-10-18 21:53:08 +02:00
|
|
|
--enable-faad \
|
2018-02-25 19:06:42 +01:00
|
|
|
--enable-fdkaac \
|
2017-10-18 21:53:08 +02:00
|
|
|
--enable-lirc \
|
|
|
|
--enable-ncurses \
|
2018-02-25 19:06:42 +01:00
|
|
|
--enable-nls \
|
2017-10-18 21:53:08 +02:00
|
|
|
--enable-opus \
|
2018-02-25 19:06:42 +01:00
|
|
|
--enable-realrtsp \
|
2017-10-18 21:53:08 +02:00
|
|
|
--enable-sftp \
|
2018-02-25 19:06:42 +01:00
|
|
|
--enable-upnp \
|
|
|
|
--enable-vcdx \
|
|
|
|
--enable-wayland
|
2017-10-18 21:53:08 +02:00
|
|
|
|
|
|
|
./compile
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-12-09 21:24:30 +01:00
|
|
|
cd "${_appname_}-${_pkgver}-${_suffix_}"
|
2017-10-18 21:53:08 +02:00
|
|
|
|
|
|
|
make -i DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
for res in 16 32 48 128; do
|
2017-12-09 21:24:30 +01:00
|
|
|
install -D -m644 "${srcdir}/${_appname_}-${_pkgver}-${_suffix_}/share/icons/${res}x${res}/${_appname_}.png" \
|
2017-10-18 21:53:08 +02:00
|
|
|
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${_appname_}.png"
|
|
|
|
done
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/update-vlc-plugin-cache.hook "$pkgdir"/usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
|
|
|
|
|
|
|
|
# Update dependencies automatically based on dynamic libraries
|
|
|
|
# _detected_depends=($(find "$pkgdir"/usr -name "*.so" | xargs python "$srcdir"/find-deps.py))
|
|
|
|
|
|
|
|
# msg 'Auto-detected dependencies:'
|
|
|
|
# echo "${_detected_depends[@]}" | fold -s -w 79 | sed 's/^/ /'
|
|
|
|
# depends=("${_detected_depends[@]}" "${_undetected_depends[@]}")
|
|
|
|
}
|
|
|
|
|
2018-02-25 19:06:42 +01:00
|
|
|
sha256sums=('29bf008daa301b204c90fda129d95440f374224d3fecb956c052a945c8d636f2'
|
2017-10-18 21:53:08 +02:00
|
|
|
'c6f60c50375ae688755557dbfc5bd4a90a8998f8cf4d356c10d872a1a0b44f3a'
|
2018-02-25 19:06:42 +01:00
|
|
|
'75ad8802bad1a79754e40fd107f5a6922c54f7467dadef8b439b49d410c8f7d2'
|
|
|
|
'a5273ca82c95a3b70573f9b71ad4fd49d970e78fc5a3cc7970648474d00df5d5'
|
2017-10-18 21:53:08 +02:00
|
|
|
'90b0e34d5772d2307ba07a1c2aa715db7488389003cfe6d3570b2a9c63061db7')
|