contrib/vlc/Pkgfile

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-09-01 23:14:26 +02:00
# Description: The cross-platform media player and streaming server
# URL: https://www.videolan.org/vlc/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: ffmpeg liba52 libdvdnav libgcrypt libmad qt5
2020-05-23 11:15:59 +02:00
# Nice to have: opus libvorbis x264 libogg libmtp libtheora flac libvdpau
2010-09-01 23:14:26 +02:00
name=vlc
2020-07-30 13:09:37 +02:00
version=3.0.11.1
2020-05-23 11:15:59 +02:00
release=1
source=(https://download.videolan.org/pub/videolan/$name/$version/$name-$version.tar.xz
qt-5.15.patch)
2010-09-01 23:14:26 +02:00
build() {
2014-10-23 22:35:48 +02:00
cd $name-$version
[ -z "$(pkg-config --libs --static libavutil | grep -- '-lvdpau')" ] && PKGMK_VLC+=' --disable-vdpau'
2020-05-23 11:15:59 +02:00
patch -Np1 -i $SRC/qt-5.15.patch
2014-10-23 22:35:48 +02:00
autoreconf -fi
export RCC=/usr/bin/rcc-qt5
sed -e 's|-Werror-implicit-function-declaration||g' -i configure
2019-06-09 03:19:26 +02:00
BUILDCC="gcc -std=gnu11" \
2020-05-23 11:15:59 +02:00
./configure ${PKGMK_VLC} --prefix=/usr \
2014-10-23 22:35:48 +02:00
--disable-nls \
--disable-fribidi \
--disable-dbus \
2018-09-09 01:02:17 +02:00
--disable-lua \
--disable-update-check \
--enable-alsa
2019-06-09 03:19:26 +02:00
V=1 ./compile
2014-10-23 22:35:48 +02:00
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/{doc,kde4}
2014-05-13 10:38:59 +02:00
# fix desktop file
sed -i 's/--started-from-file//g' $PKG/usr/share/applications/vlc.desktop
2010-09-01 23:14:26 +02:00
}