mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 02:27:16 +08:00
62 lines
2.5 KiB
Bash
62 lines
2.5 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=mplayer2
|
|
pkgver=2.0
|
|
pkgrel=2
|
|
pkgdesc="A media player for Linux, Uoti Urpala's fork"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="http://www.mplayer2.org/"
|
|
depends=('a52dec' 'aalib' 'alsa-lib' 'libass' 'ffmpeg' 'libcaca' 'cdparanoia' 'glibc' 'libdca' 'directfb' 'libdvdnav'
|
|
'libdvdread' 'enca' 'faad2' 'fontconfig' 'freetype2' 'gcc-libs' 'giflib' 'libgl' 'jack' 'libjpeg' 'lirc-utils'
|
|
'libmad' 'libmng' 'mpg123' 'ncurses' 'libogg' 'libpng' 'sdl' 'smbclient' 'libtheora' 'libvdpau' 'libvorbis'
|
|
'libx11' 'libxext' 'libxinerama' 'libxss' 'xvidcore' 'libxvmc' 'libxv' 'libxxf86dga' 'libxxf86vm' 'zlib')
|
|
makedepends=('live-media' 'mesa' 'unzip' 'yasm')
|
|
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
|
provides=('mplayer')
|
|
conflicts=('mplayer' 'mplayer2-git')
|
|
#source=(http://ftp.mplayer2.org/pub/release/${pkgname}-build-${pkgver/_/-}.tar.xz)
|
|
md5sums=('05b93784de995235e2758f182de15f73')
|
|
source=(https://launchpad.net/debian/experimental/+source/mplayer2/2.0-54-gd33877a-1/+files/mplayer2_2.0-54-gd33877a.orig.tar.gz)
|
|
md5sums=('3ccc86e8c340edd37697178a7dba471a')
|
|
|
|
build() {
|
|
unset CFLAGS LDFLAGS
|
|
|
|
#cd ${srcdir}/${pkgname}-build-${pkgver/_/-}/${pkgname/2/}
|
|
cd ${srcdir}/mplayer2-build-2.0-54-gd33877a/mplayer
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-runtime-cpudetection \
|
|
--disable-arts \
|
|
--disable-speex \
|
|
--disable-openal \
|
|
--disable-libdv \
|
|
--disable-musepack \
|
|
--disable-esd \
|
|
--disable-pulse \
|
|
--disable-mga \
|
|
--disable-fribidi \
|
|
--enable-xvmc \
|
|
--enable-translation \
|
|
--language-doc=all \
|
|
--language-man=all \
|
|
--language-msg=all \
|
|
--confdir=/etc/mplayer
|
|
make
|
|
}
|
|
|
|
package() {
|
|
#cd ${srcdir}/${pkgname}-build-${pkgver/_/-}/${pkgname/2/}
|
|
cd ${srcdir}/mplayer2-build-2.0-54-gd33877a/mplayer
|
|
|
|
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
|
|
rm -rf ${pkgdir}/usr/share/mplayer/font
|
|
} |