PKGBUILDs/community/mplayer2/PKGBUILD

60 lines
2.2 KiB
Bash
Raw Normal View History

2012-12-09 21:04:22 +00:00
# $Id$
2012-04-25 23:14:41 +00:00
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Martin Panter <vadmium+aur@gmail.com>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed --enable-runtime-cpudetection - not supported on ARM
pkgname=mplayer2
2012-12-09 21:04:22 +00:00
pkgver=20121128
2013-02-17 00:18:54 +00:00
pkgrel=3
2012-11-18 08:00:46 +00:00
pkgdesc='Advanced general-purpose media player. A fork of the original MPlayer project'
2012-04-25 23:14:41 +00:00
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.mplayer2.org/"
install=$pkgname.install
depends=('a52dec' 'aalib' 'cdparanoia' 'desktop-file-utils' 'enca' 'faad2' 'ffmpeg' 'fontconfig'
2013-01-15 14:01:02 +00:00
'freetype2' 'jack' 'ladspa' 'lame' 'libass' 'libbluray' 'libcaca' 'libcdio-paranoia' 'libdca' 'libdvdcss'
2012-11-18 08:00:46 +00:00
'libdvdnav' 'libdvdread' 'libgl' 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora' 'libvdpau'
2012-04-25 23:14:41 +00:00
'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
2012-11-18 08:00:46 +00:00
makedepends=('mesa' 'unzip' 'yasm' 'python' 'python-docutils')
2012-04-25 23:14:41 +00:00
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
options=(!emptydirs)
2013-01-15 14:01:02 +00:00
source=(ftp://mirrors.kernel.org/archlinux/other/community/$pkgname/$pkgname-$pkgver.tar.xz
cdio-api-fixes.patch)
md5sums=('696adb2503b2202fe39de6c98b573cd6'
'5ff5fa9d0fd50239ed3a1756b31e6a9d')
2012-04-25 23:14:41 +00:00
build() {
2012-11-18 08:00:46 +00:00
cd $srcdir/$pkgname-$pkgver
sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop
find -type f -exec sed -e 's/python3/python/' -i {} \;
2013-01-15 14:01:02 +00:00
patch -Np1 -i $srcdir/cdio-api-fixes.patch
2012-11-18 08:00:46 +00:00
./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-translation --language=all \
--enable-joystick \
--disable-speex \
--disable-openal \
--disable-libdv \
--disable-musepack
make
2012-04-25 23:14:41 +00:00
}
package() {
2012-11-18 08:00:46 +00:00
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
2012-04-25 23:14:41 +00:00
2012-11-18 08:00:46 +00:00
install -Dm644 etc/{codecs.conf,input.conf,example.conf} $pkgdir/etc/mplayer/
install -dm755 $pkgdir/usr/share/mplayer/
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf $pkgdir/usr/share/mplayer/subfont.ttf
2012-04-25 23:14:41 +00:00
2012-11-18 08:00:46 +00:00
install -dm755 $pkgdir/usr/share/applications/
install -m 644 etc/mplayer.desktop $pkgdir/usr/share/applications/
2012-04-25 23:14:41 +00:00
}