desktop/mplayer-vaapi/PKGBUILD

59 lines
2.1 KiB
Bash
Raw Normal View History

2011-02-11 02:17:51 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
2011-02-11 02:17:51 +08:00
pkgname=mplayer-vaapi
2012-08-27 19:24:55 +08:00
pkgver=35107
pkgrel=11
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'
'libtheora' 'xvidcore' 'libmng' 'libxss' 'mesa' 'samba' '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')
optdepends=('libva-driver-intel: 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"
2012-09-07 13:39:22 +08:00
"tweak-desktop-file.patch")
md5sums=('4625684ca3e10411d7cb4aa604b5932f'
'5e9a31281933ab5fd1c0c2b094eae4a7')
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
patch -d etc -p0 -i "${srcdir}/tweak-desktop-file.patch"
2012-06-02 02:46:51 +08:00
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
}