summaryrefslogtreecommitdiff
path: root/community/mplayer2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mplayer2/PKGBUILD')
-rw-r--r--community/mplayer2/PKGBUILD46
1 files changed, 22 insertions, 24 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD
index 7f012d00b..74f14d424 100644
--- a/community/mplayer2/PKGBUILD
+++ b/community/mplayer2/PKGBUILD
@@ -1,44 +1,43 @@
-# $Id: PKGBUILD 56845 2011-10-14 19:26:53Z stephane $
+# $Id: PKGBUILD 58413 2011-11-12 17:18:14Z ibiru $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Bartek Piotrowski <barthalion@gmail.com>
pkgname=mplayer2
-pkgver=2.0
-pkgrel=15
+pkgver=2.0.20111101
+pkgrel=1
pkgdesc="A movie player"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.mplayer2.org/"
depends=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2'
- 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad'
+ 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad'
'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa')
-makedepends=('live-media' 'mesa' 'unzip' 'yasm')
+makedepends=('live-media' 'mesa' 'unzip' 'yasm' 'git')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
-source=(http://ftp.mplayer2.org/pub/release/${pkgname}-${pkgver/_/-}.tar.xz
- mplayer2-remove-mp3lib.patch
- mplayer2-SAMI-subs.patch)
-sha1sums=('0df8d4e5484128b7b28029273b7704ab5d5419bc'
- 'c55128a99406a5e01ab077555b7b24aa7b54110c'
- '4059d5d0564004feb55d25b5f62f7f4672e40fb1')
+#source=(http://ftp.mplayer2.org/pub/release/${pkgname}-${pkgver/_/-}.tar.xz
+source=(ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+sha1sums=('78c78605733ca792bb12a52a751a508bfc0f213d')
options=('!emptydirs')
-build() {
- # Custom CFLAGS break the mplayer build
- unset CFLAGS LDFLAGS
+# source PKGBUILD && mksource
+mksource() {
+ _gitroot="git://git.mplayer2.org/mplayer2.git"
+ _gitname="${pkgname}-${pkgver}"
- cd "${srcdir}/${pkgname}-${pkgver}"
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
- # Drop internal mp3lib (FS#24149)
- # Default decoder for mp3 will be mpg123
- rm -fr mp3lib
- patch -Np1 -i ../mplayer2-remove-mp3lib.patch
+ tar -cJvf ${_gitname}.tar.xz ${_gitname}
+ rm -fr ${_gitname}
+}
- # SAMI subtitle parsing buffer overflow
- # http://mplayerhq.hu/pipermail/mplayer-cvslog/2011-May/042075.html
- # http://labs.mwrinfosecurity.com/files/Advisories/mwri_mplayer-sami-subtitles_2011-08-12.pdf
- patch -Np1 -i ../mplayer2-SAMI-subs.patch
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--enable-runtime-cpudetection \
@@ -49,7 +48,6 @@ build() {
--disable-musepack \
--disable-esd \
--disable-mga \
- --enable-xvmc \
--language=all \
--enable-translation \
--confdir=/etc/mplayer