updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / mplayer2-vo-lavc-git / PKGBUILD
blobf6a46586a664a69e65d050c4583e3b7828dba2ab
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
6 pkgver=20110506
7 pkgrel=1
8 pkgdesc="divVerent's branch with encoding functionality"
9 arch=('i686' 'x86_64')
10 license=('GPL')
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')
15 provides=('mplayer')
16 conflicts=('mplayer')
18 _gitroot="git://github.com/divVerent/mplayer.git"
19 _gitname="mplayer2-vo-lavc"
21 build() {
22    cd "${srcdir}"
23    if [[ -d "${_gitname}" ]]; then
24       cd "${_gitname}"
25       git pull
26    else
27       git clone "${_gitroot}" "${_gitname}" && cd "${_gitname}"
28    fi
30    # Custom CFLAGS break the mplayer build
31    unset CFLAGS LDFLAGS
33     ./configure --prefix=/usr \
34                --confdir=/etc/mplayer
35    make
38 package() {
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