summaryrefslogtreecommitdiff
path: root/community/mplayer2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mplayer2/PKGBUILD')
-rw-r--r--community/mplayer2/PKGBUILD73
1 files changed, 0 insertions, 73 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD
deleted file mode 100644
index 4711ca200..000000000
--- a/community/mplayer2/PKGBUILD
+++ /dev/null
@@ -1,73 +0,0 @@
-# $Id: PKGBUILD 94896 2013-08-01 06:55:15Z bpiotrowski $
-# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
-# Contributor: Martin Panter <vadmium+aur@gmail.com>
-# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
-
-pkgname=mplayer2
-pkgver=20130428
-pkgrel=4
-pkgdesc='Advanced general-purpose media player. A fork of the original MPlayer project'
-arch=('i686' 'x86_64' 'mips64el')
-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-paranoia' 'libdca' 'libdvdcss' 'libdvdnav' 'libdvdread'
- 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora'
- 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm'
- 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu' 'giflib')
-makedepends=('unzip' 'python' 'python-docutils' 'git')
-if [ "$CARCH" != "mips64el" ]; then
- depends+=('libgl' 'libvdpau' 'lirc-utils')
- makedepends+=('mesa' 'mesa-libgl' 'yasm')
-fi
-backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
-provides=('mplayer')
-conflicts=('mplayer')
-options=(!emptydirs)
-source=(git://git.mplayer2.org/mplayer2.git#commit=6c87a981baa
- giflib-5.0.patch)
-sha256sums=('SKIP'
- '20706ebb35e7c1935ae263c48d623a878db3b634ca575927913f56d9ce059c7a')
-
-pkgver() {
- cd $pkgname
- git log -1 --format="%cd" --date=short | sed 's|-||g'
-}
-
-prepare() {
- cd $pkgname
- sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop
- find -type f -exec sed -e 's/python3/python/' -i {} \;
- patch -Np1 -i ../giflib-5.0.patch
-}
-
-build() {
- cd $pkgname
-
- [ "$CARCH" != "mips64el" ] && extra="--enable-runtime-cpudetection"
-
- ./configure --prefix=/usr --confdir=/etc/mplayer \
- --enable-translation --language=all \
- --enable-joystick \
- --enable-gif \
- --disable-speex \
- --disable-openal \
- --disable-libdv \
- --disable-musepack \
- $extra
- make
-}
-
-package() {
- cd $pkgname
- 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/
-}