1 # Maintainer: cantabile <cantabile dot desu at gmail dot com>
2 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
3 # Contributor: Bartek Piotrowski <barthalion@gmail.com>
5 pkgname=mplayer2-vo-lavc-git
8 pkgdesc="divVerent's branch with encoding functionality"
11 url="https://github.com/divVerent/mplayer"
12 depends=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2' 'ttf-dejavu'
13 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad' 'a52dec' 'libdca' 'libxxf86dga')
14 makedepends=('live-media' 'mesa' 'unzip' 'yasm' 'git')
18 _gitroot="git://github.com/divVerent/mplayer.git"
19 _gitname="mplayer2-vo-lavc"
23 if [[ -d "${_gitname}" ]]; then
27 git clone "${_gitroot}" "${_gitname}" && cd "${_gitname}"
30 # Custom CFLAGS break the mplayer build
33 ./configure --prefix=/usr \
34 --confdir=/etc/mplayer
39 cd "${srcdir}/${_gitname}"
40 make DESTDIR="${pkgdir}" install
41 install -Dm644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}"/etc/mplayer/
42 install -dm755 "${pkgdir}"/usr/share/mplayer/
43 ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "${pkgdir}"/usr/share/mplayer/subfont.ttf