desktop/mplayer-vaapi/PKGBUILD

65 lines
2.3 KiB
Bash
Raw Normal View History

2013-12-08 11:02:21 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: abveritas@chakra-project.org
2011-02-11 02:17:51 +08:00
pkgname=mplayer-vaapi
2013-12-08 11:02:21 +08:00
pkgver=36265
pkgrel=2
2011-02-11 02:17:51 +08:00
pkgdesc="A movie player, compiled with vaapi support"
arch=('x86_64')
2012-06-02 02:46:51 +08:00
url="http://gitorious.org/vaapi/mplayer"
2011-02-11 02:17:51 +08:00
license=('GPL')
depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'libcdio' 'libxinerama' 'sdl' 'lame' 'fontconfig'
2013-12-08 11:02:21 +08:00
'libtheora' 'xvidcore' 'libmng' 'libxss' 'mesa' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264'
'faac' 'faad2' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'opencore-amr' 'libdca' 'a52dec'
'schroedinger' 'mpg123' 'libvpx' 'pulseaudio' 'fribidi' 'faad2' 'libva' 'desktop-file-utils'
'libbs2b' 'nas' 'libass')
2012-06-02 02:46:51 +08:00
makedepends=('unzip' 'live-media' 'yasm' 'ladspa' 'git')
2013-12-08 11:02:21 +08:00
optdepends=('libva-intel-driver: video acceleration for Intel graphic cards')
provides=("mplayer=${pkgver}" 'mencoder')
2011-02-11 02:17:51 +08:00
conflicts=('mplayer')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
2012-06-02 02:46:51 +08:00
categories=('multimedia')
options=('!buildflags' '!emptydirs')
2012-09-07 13:39:22 +08:00
install=${pkgname}.install
source=("http://pkgbuild.com/~foutrelis/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz"
2013-12-08 11:02:21 +08:00
'tweak-desktop-file.patch'
'subreader-fix-srt-parsing.patch')
md5sums=('dda55251fd65c046ddeaf5927c676ec2'
'5e9a31281933ab5fd1c0c2b094eae4a7'
'4f2b5b0a5801ca607c8dbbe62047feab')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -d etc -Np0 -i "$srcdir/tweak-desktop-file.patch"
# http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2139
patch -Np0 -i "$srcdir/subreader-fix-srt-parsing.patch"
}
2011-02-11 02:17:51 +08:00
build() {
2012-09-10 02:01:21 +08:00
cd "${srcdir}/mplayer-vaapi-${pkgver}"
2011-02-11 02:17:51 +08:00
./configure --prefix=/usr \
2012-06-02 02:46:51 +08:00
--enable-runtime-cpudetection \
--enable-xvmc \
2012-08-27 19:24:55 +08:00
--enable-radio \
--enable-radio-capture \
2012-06-02 02:46:51 +08:00
--enable-vaapi \
--language=all \
--confdir=/etc/mplayer
2011-02-11 02:17:51 +08:00
make
2011-11-24 03:06:04 +08:00
}
package() {
2012-09-10 02:01:21 +08:00
cd "${srcdir}/mplayer-vaapi-${pkgver}"
2011-11-24 03:06:04 +08:00
make -j1 DESTDIR="${pkgdir}" install
2012-09-10 02:01:21 +08:00
install -Dm644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer/"
install -Dm644 etc/mplayer.desktop "${pkgdir}/usr/share/applications/mplayer.desktop"
install -d "${pkgdir}/usr/share/mplayer/"
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "${pkgdir}/usr/share/mplayer/subfont.ttf"
rm -rf "${pkgdir}/usr/share/mplayer/font"
install -Dm644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"
2011-02-11 02:17:51 +08:00
}