From af1e6c210b43ea6b8e043524edccb1d0befd257f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Apr 2012 00:02:56 +0000 Subject: Sun Apr 22 00:02:56 UTC 2012 --- community-testing/mplayer2/PKGBUILD | 52 +++++++++++++++++++++++++++++ community-testing/mplayer2/mplayer2.install | 11 ++++++ 2 files changed, 63 insertions(+) create mode 100644 community-testing/mplayer2/PKGBUILD create mode 100644 community-testing/mplayer2/mplayer2.install (limited to 'community-testing') diff --git a/community-testing/mplayer2/PKGBUILD b/community-testing/mplayer2/PKGBUILD new file mode 100644 index 000000000..69800fc54 --- /dev/null +++ b/community-testing/mplayer2/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Bartłomiej Piotrowski +# Contributor: Martin Panter +# Contributor: Stéphane Gaudreault + +pkgname=mplayer2 +pkgver=20120414 +pkgrel=1 +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=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2' + 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad' + 'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa' 'desktop-file-utils') +makedepends=('mesa' 'unzip' 'yasm') +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) +md5sums=('95d981808cbfa66ad238f6c044f4f746') + +build() { + cd "${srcdir}"/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --enable-runtime-cpudetection \ + --disable-arts \ + --disable-speex \ + --disable-openal \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --language=all \ + --enable-translation \ + --confdir=/etc/mplayer + 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/ +} diff --git a/community-testing/mplayer2/mplayer2.install b/community-testing/mplayer2/mplayer2.install new file mode 100644 index 000000000..660593cf5 --- /dev/null +++ b/community-testing/mplayer2/mplayer2.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf