2011-03-27 19:00:15 +08:00
|
|
|
#
|
2012-05-20 06:02:02 +08:00
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
2011-03-27 19:00:15 +08:00
|
|
|
#
|
2012-05-20 06:02:02 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-03-27 19:00:15 +08:00
|
|
|
|
|
|
|
pkgname=mplayer2
|
2012-08-31 02:08:01 +08:00
|
|
|
pkgver=20120827
|
2012-09-03 15:10:55 +08:00
|
|
|
pkgrel=2
|
2011-09-15 02:33:36 +08:00
|
|
|
pkgdesc="A movie player"
|
2011-03-27 19:00:15 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('GPL')
|
|
|
|
url="http://www.mplayer2.org/"
|
2012-02-28 05:40:57 +08:00
|
|
|
depends=('desktop-file-utils' 'ttf-dejavu' 'enca' 'libxss' 'a52dec' 'libvpx' 'lirc-utils' 'x264' 'libmng' 'libdca' 'aalib' 'lame' 'fontconfig' 'libgl'
|
|
|
|
'libxinerama' 'libvdpau' 'libpulse' 'smbclient' 'xvidcore' 'opencore-amr' 'jack' 'cdparanoia' 'libmad' 'sdl' 'libtheora' 'libcaca' 'libxxf86dga' 'fribidi'
|
2012-08-31 02:08:01 +08:00
|
|
|
'libjpeg' 'faac' 'faad2' 'libxvmc' 'schroedinger' 'mpg123' 'libass' 'libxxf86vm' 'libbluray' 'ffmpeg' 'libbs2b' 'directfb' 'nas')
|
|
|
|
makedepends=('live-media' 'mesa' 'unzip' 'yasm' 'python3')
|
2012-03-06 22:42:55 +08:00
|
|
|
categories=('multimedia')
|
2011-03-27 19:00:15 +08:00
|
|
|
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
2012-02-05 05:38:30 +08:00
|
|
|
provides=('mplayer=99999')
|
2011-09-15 02:33:36 +08:00
|
|
|
conflicts=('mplayer')
|
2012-02-05 05:38:30 +08:00
|
|
|
source=("http://chakra-linux.org/sources/mplayer2/mplayer2-$pkgver.tar.xz")
|
2012-08-31 02:08:01 +08:00
|
|
|
sha1sums=('cb3404dc45958a41215c69a27118315039ac0764')
|
2011-11-12 10:50:12 +08:00
|
|
|
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
|
|
|
|
mksource() {
|
2012-08-31 02:08:01 +08:00
|
|
|
echo "checkout ${pkgname}"
|
|
|
|
git clone git://git.${pkgname}.org/${pkgname}.git
|
|
|
|
echo "clean checkout"
|
|
|
|
rm -vRf mplayer2/.git
|
2011-11-12 10:50:12 +08:00
|
|
|
pushd mplayer2
|
|
|
|
popd
|
2012-08-31 02:08:01 +08:00
|
|
|
echo "pack checkout"
|
|
|
|
tar -cvJf ${pkgname}-${pkgver}.tar.xz mplayer2/*
|
|
|
|
echo -n "sha1sum: "
|
|
|
|
sha1sum ${pkgname}-${pkgver}.tar.xz
|
2011-11-12 10:50:12 +08:00
|
|
|
}
|
2011-03-27 19:00:15 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
|
2011-11-12 10:50:12 +08:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2011-09-15 02:33:36 +08:00
|
|
|
|
2011-11-05 17:57:55 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-runtime-cpudetection \
|
|
|
|
--disable-speex \
|
|
|
|
--disable-openal \
|
|
|
|
--disable-libdv \
|
|
|
|
--disable-musepack \
|
|
|
|
--disable-mga \
|
|
|
|
--language=all \
|
|
|
|
--enable-translation \
|
|
|
|
--confdir=/etc/mplayer
|
|
|
|
make
|
2011-03-27 19:00:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-11-12 10:50:12 +08:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2011-03-27 19:00:15 +08:00
|
|
|
|
2011-11-05 17:57:55 +08:00
|
|
|
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"
|
2011-09-15 02:33:36 +08:00
|
|
|
}
|
2011-11-05 17:57:55 +08:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|