# Description: Vlc'den kütüphane
# URL: http://www.slackware.com/~alien/slackbuilds/vlc/
# Packager: milisarge
# Depends on: libbluray opus qt5 x264 flac libmad glib librsvg alsa-lib xorg-libxinerama xorg-libxpm libvpx libcdio vcdimager live libdvdcss libdvdread libdvdnav libogg libtheora lame faac libvorbis ffmpeg faad2 liba52 libmpeg2 libmpcdec fribidi lua libdv speex

name=libvlc
version=3.0.0
release=20160606

source=( http://anduin.linuxfromscratch.org/BLFS/vlc/vlc-$version-$release.tar.xz
         lua53_compat.patch)
	
build() {

cd vlc-$version-$release

sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh

BUILDCC=gcc \
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --enable-bluray \
            --enable-opus \
            RCC=/usr/bin/rcc-qt5

make
make DESTDIR=$PKG install
rm -r $PKG/usr/{lib/vlc,share,bin}
}