Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2012  |  syntax: None  |  size: 1.98 KB  |  views: 118  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # $Id$
  2. # Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
  3. # Contributor: Bartek Piotrowski <barthalion@gmail.com>
  4.  
  5. pkgname=mplayer2
  6. pkgver=2.0.20111101
  7. pkgrel=1
  8. pkgdesc="A movie player"
  9. arch=('i686' 'x86_64')
  10. license=('GPL')
  11. url="http://www.mplayer2.org/"
  12. depends=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2'
  13. 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad'
  14. 'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa')
  15. makedepends=('live-media' 'mesa' 'unzip' 'yasm' 'git')
  16. backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
  17. provides=('mplayer')
  18. conflicts=('mplayer')
  19. #source=(http://ftp.mplayer2.org/pub/release/${pkgname}-${pkgver/_/-}.tar.xz
  20. source=(ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.xz)
  21. sha1sums=('78c78605733ca792bb12a52a751a508bfc0f213d')
  22. options=('!emptydirs')
  23.  
  24. # source PKGBUILD && mksource
  25. mksource() {
  26. _gitroot="git://git.mplayer2.org/mplayer2.git"
  27. _gitname="${pkgname}-${pkgver}"
  28.  
  29. if [[ -d "$_gitname" ]]; then
  30. cd "$_gitname" && git pull origin
  31. else
  32. git clone "$_gitroot" "$_gitname"
  33. fi
  34.  
  35. tar -cJvf ${_gitname}.tar.xz ${_gitname}
  36. rm -fr ${_gitname}
  37. }
  38.  
  39. build() {
  40. cd "${srcdir}/${pkgname}-${pkgver}"
  41.  
  42. ./configure --prefix=/usr \
  43. --enable-runtime-cpudetection \
  44. --disable-arts \
  45. --disable-speex \
  46. --disable-openal \
  47. --disable-libdv \
  48. --disable-musepack \
  49. --disable-esd \
  50. --disable-mga \
  51. --language=all \
  52. --enable-translation \
  53. --confdir=/etc/mplayer
  54. make
  55. }
  56.  
  57. package() {
  58. cd "${srcdir}/${pkgname}-${pkgver}"
  59.  
  60. make DESTDIR="${pkgdir}" install
  61. install -Dm644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}"/etc/mplayer/
  62. install -dm755 "${pkgdir}"/usr/share/mplayer/
  63. ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "${pkgdir}"/usr/share/mplayer/subfont.ttf
  64.  
  65. install -dm755 "${pkgdir}"/usr/share/applications/
  66. install -m 644 etc/mplayer.desktop "${pkgdir}"/usr/share/applications/
  67. }