extra/mplayer to 37051-2

This commit is contained in:
Kevin Mihelich 2014-03-29 16:10:32 +00:00
parent c828f0c497
commit bb97a35335

View file

@ -9,8 +9,8 @@
pkgbase=mplayer pkgbase=mplayer
pkgname=('mplayer' 'mencoder') pkgname=('mplayer' 'mencoder')
pkgver=36498 pkgver=37051
pkgrel=5 pkgrel=2
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
makedepends=( makedepends=(
'libxxf86dga' 'libxxf86vm' 'libmad' 'libxinerama' 'sdl' 'lame' 'libtheora' 'libxxf86dga' 'libxxf86vm' 'libmad' 'libxinerama' 'sdl' 'lame' 'libtheora'
@ -23,23 +23,27 @@ makedepends=(
license=('GPL') license=('GPL')
url='http://www.mplayerhq.hu/' url='http://www.mplayerhq.hu/'
options=('!buildflags' '!emptydirs') options=('!buildflags' '!emptydirs')
source=(ftp://ftp.archlinux.org/other/packages/$pkgbase/$pkgbase-$pkgver.tar.xz source=(http://mirrors.kernel.org/archlinux/other/$pkgbase/$pkgbase-$pkgver.tar.xz{,.sig}
http://ffmpeg.org/releases/ffmpeg-2.1.tar.bz2 http://ffmpeg.org/releases/ffmpeg-2.2.tar.bz2
mplayer.desktop mplayer.desktop
cdio-includes.patch cdio-includes.patch
include-samba-4.0.patch) include-samba-4.0.patch)
md5sums=('8b856e8833d910b6e38b04bb8453d0dc' md5sums=('0407ab1f9613dcd6bce06a80ac0b028b'
'4ec1cedd4c7753512462f70b347c338a' 'SKIP'
'744febca199548c9393b1f1ed05ccdd8'
'62f44a58f072b2b1a3c3d3e4976d64b3' '62f44a58f072b2b1a3c3d3e4976d64b3'
'7b5be7191aafbea64218dc4916343bbc' '7b5be7191aafbea64218dc4916343bbc'
'868a92bdef148df7f38bfa992b26ce9d') '868a92bdef148df7f38bfa992b26ce9d')
prepare() { prepare() {
cd $pkgbase-$pkgver cd $pkgbase-$pkgver
mv ../ffmpeg-2.2 ./ffmpeg
patch -p0 -i ../cdio-includes.patch patch -p0 -i ../cdio-includes.patch
patch -p1 -i ../include-samba-4.0.patch patch -p1 -i ../include-samba-4.0.patch
mv ../ffmpeg-2.1 ./ffmpeg echo "#define VERSION \"SVN-r$pkgver\"" > version.h
echo '#define MP_TITLE "%s "VERSION" (C) 2000-2014 MPlayer Team\n"' >> version.h
} }
build() { build() {
@ -70,7 +74,7 @@ build() {
} }
package_mplayer() { package_mplayer() {
pkgdesc="A movie player for linux" pkgdesc='Media player for Linux'
install=mplayer.install install=mplayer.install
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
depends=( depends=(
@ -88,15 +92,15 @@ package_mplayer() {
install -Dm644 etc/{codecs.conf,input.conf,example.conf} \ install -Dm644 etc/{codecs.conf,input.conf,example.conf} \
"$pkgdir/etc/mplayer/" "$pkgdir/etc/mplayer/"
# desktop file FS#14770 # desktop file (FS#14770)
install -Dm644 "$srcdir/mplayer.desktop" \ install -Dm644 ../mplayer.desktop \
"$pkgdir/usr/share/applications/mplayer.desktop" "$pkgdir"/usr/share/applications/mplayer.desktop
install -Dm644 etc/mplayer256x256.png \ install -Dm644 etc/mplayer256x256.png \
"$pkgdir/usr/share/pixmaps/mplayer.png" "$pkgdir"/usr/share/pixmaps/mplayer.png
} }
package_mencoder() { package_mencoder() {
pkgdesc="Free command line video decoding, encoding and filtering tool" pkgdesc='Free command line video decoding, encoding and filtering tool'
depends=( depends=(
'enca' 'a52dec' 'libvpx' 'x264' 'libmng' 'libdca' 'bzip2' 'lame' 'enca' 'a52dec' 'libvpx' 'x264' 'libmng' 'libdca' 'bzip2' 'lame'
'alsa-lib' 'fontconfig' 'giflib' 'libpng' 'smbclient' 'xvidcore' 'alsa-lib' 'fontconfig' 'giflib' 'libpng' 'smbclient' 'xvidcore'
@ -105,7 +109,6 @@ package_mencoder() {
'libvorbis' 'opus' 'libvorbis' 'opus'
) )
cd $pkgbase-$pkgver make -C $pkgbase-$pkgver DESTDIR="$pkgdir" install-mencoder install-mencoder-man
make DESTDIR="$pkgdir" install-mencoder install-mencoder-man find "$pkgdir"/usr/share/man -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +
find "$pkgdir/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +
} }