PKGBUILDs/community/mplayer2/PKGBUILD

57 lines
2.2 KiB
Bash
Raw Normal View History

2012-08-03 19:24:13 +00:00
# $Id: PKGBUILD 74686 2012-08-02 07:31:37Z bpiotrowski $
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-08-03 19:24:13 +00:00
pkgver=20120729
pkgrel=1
2012-04-25 23:14:41 +00:00
pkgdesc="An advanced general-purpose media player. A fork of the original MPlayer project"
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'
'freetype2' 'jack' 'ladspa' 'lame' 'libass' 'libbluray' 'libcaca' 'libcdio' 'libdca' 'libdvdcss'
'libdvdnav' 'libdvdread' 'libgl' 'libjpeg' 'libmad' 'libpulse' 'libtheora' 'libvdpau'
'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
2012-08-03 19:24:13 +00:00
makedepends=('mesa' 'unzip' 'yasm' 'python')
2012-04-25 23:14:41 +00:00
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
options=(!emptydirs)
source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz)
2012-08-03 19:24:13 +00:00
md5sums=('53a266106f4c0dd687af3f807727812c')
2012-04-25 23:14:41 +00:00
build() {
cd "${srcdir}"/$pkgname-$pkgver
2012-07-09 21:09:36 +00:00
2012-05-31 12:53:22 +00:00
sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop
2012-08-03 19:24:13 +00:00
find -type f -exec sed -e 's/python3/python/' -i {} \;
2012-05-31 12:53:22 +00:00
2012-07-09 21:09:36 +00:00
./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-translation --language=all \
--enable-joystick \
2012-04-25 23:14:41 +00:00
--disable-speex \
--disable-openal \
--disable-libdv \
--disable-musepack \
2012-07-09 21:09:36 +00:00
--disable-mga
2012-04-25 23:14:41 +00:00
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" install
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
install -dm755 "${pkgdir}"/usr/share/applications/
install -m 644 etc/mplayer.desktop "${pkgdir}"/usr/share/applications/
}