milis/talimatname/genel/vlc/talimat

38 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-03-30 15:50:34 +02:00
# Description: The cross-platform media player and streaming server
# URL: http://www.videolan.org/vlc/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: milisarge@gmail.com
2016-07-23 16:36:11 +02:00
# Depends on: libvlc 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
2016-02-24 01:27:23 +01:00
name=vlc
2016-07-23 16:36:11 +02:00
version=2.2.4
2016-03-30 15:50:34 +02:00
release=1
2016-07-23 16:36:11 +02:00
source=(http://download.videolan.org/pub/videolan/$name/$version/$name-$version.tar.xz
lua53_compat.patch
update-vlc-plugin-cache.hook)
2016-02-24 01:27:23 +01:00
build() {
2016-07-23 16:36:11 +02:00
cd $name-$version
patch -Np1 -i ../lua53_compat.patch
sed -i 's:libsmbclient.h:samba-4.0/&:' modules/access/smb.c
sh bootstrap
./configure --prefix=/usr \
RCC=/usr/bin/rcc-qt5
sed -i 's/luaL_optint/(int)&eger/' modules/lua/libs/{net,osd,volume}.c
sed -i 's/luaL_checkint(/(int)luaL_checkinteger(/' \
modules/lua/{demux,libs/{configuration,net,osd,playlist,stream,variables,volume}}.c
make
make DESTDIR=$PKG docdir=/usr/share/doc/$name-$version install
install -Dm644 ../update-vlc-plugin-cache.hook $PKG/usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
rm -rf $PKG/usr/share/doc
# fix desktop file
sed -i 's/--started-from-file//g' $PKG/usr/share/applications/vlc.desktop
}