1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: ShionjiYuuko <eien.mihoshi@gmail.com>
7 pkgname=mplayer2-build-repo
11 pkgdesc="mplayer2 official build repo with libass-0.9.13"
12 arch=('i686' 'x86_64')
13 url="http://www.mplayer2.org"
16 depends=('fontconfig' 'libgl' 'libxv' 'libxss' 'fribidi' 'libxxf86dga' 'sdl' 'ttf-dejavu')
17 makedepends=('live-media' 'mesa' 'python2' 'unzip' 'videoproto' 'yasm')
21 conflicts=('mplayer' 'mplayer2')
27 source=(http://ftp.mplayer2.org/pub/release/mplayer2-build-2.0.tar.xz
28 http://libass.googlecode.com/files/libass-0.9.13.tar.xz)
30 md5sums=('05b93784de995235e2758f182de15f73'
31 'd99381922dcbeb7a766d2e7825cca193') #generate with 'makepkg -g'
34 cd "$srcdir/mplayer2-build-$pkgver"
39 --confdir=/etc/mplayer" > mplayer_options
40 msg "Replacing libass with ver 0.9.13"
42 mv "$srcdir/libass-0.9.13" "./libass"
43 grep -r -lZ '/usr/bin/env python[^23]*' . 2>/dev/null | while read -rd '' file; do sed -i '1s:\<python\>:&2:' "$file"; done
44 msg "Starting make..."
49 cd "$srcdir/mplayer2-build-$pkgver"
50 #make DESTDIR="${pkgdir}" install #somehow error in the makefile install script, fallback to the dirty fix
52 mkdir "${pkgdir}/usr/bin"
53 install -Dm755 "mplayer/mplayer" "${pkgdir}/usr/bin/mplayer"
55 mkdir "${pkgdir}/etc/mplayer"
56 install -m644 mplayer/etc/{codecs,input,example}.conf "${pkgdir}/etc/mplayer/"
57 install -D "mplayer/DOCS/man/en/mplayer.1" "${pkgdir}/usr/share/man/man1/mplayer.1"
58 msgfmt -o mplayer.mo "mplayer/po/ja.po"
59 install -D "mplayer.mo" "${pkgdir}/usr/share/locale/ja/LC_MESSAGES/mplayer.mo"
60 install -d -m755 "${pkgdir}/usr/share/mplayer"
61 ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "${pkgdir}/usr/share/mplayer/subfont.ttf"
62 install -Dm644 "mplayer/etc/mplayer.desktop" "${pkgdir}/usr/share/applications/mplayer.desktop"
63 install -Dm644 "mplayer/etc/mplayer.xpm" "${pkgdir}/usr/share/pixmaps/mplayer.xpm"
66 # vim:set ts=2 sw=2 et: