1 # Contributor: Alexander Duscheleit <jinks@archlinux.us>
7 pkgdesc="A Curses front-end for mplayer."
9 url="http://mplay.sourceforge.net"
11 depends=('perl>=5.10.0' 'perl-mp3-info' 'perl-audio-mixer' 'perl-ogg-vorbis-header-pureperl'
12 'perl-time-hires' 'perl-term-readkey' 'perl-net-ping-external' 'perl-mp4-info'
13 'perl-mp3-tag' 'perl-video-info' 'perl-class-makemethods' 'cutmp3' 'mplayer')
14 optdepends=('perl-audio-flac-header: FLAC MetaTag support.')
17 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_pkgver}.tar.gz mplay.install)
18 sha256sums=('993b4c42a9636bb54d7fcf3939a563f53d4092e54423075ed50153f8e7737a44'
19 'fbbc36473b5210a3dc6d7709494f6f938abe58539ceb9f6c21f9f00ca456f6ba')
22 cd "$srcdir/$pkgname-$_pkgver"
24 sed -i 's:/usr/local:/usr:g' mplay || die "Unable fix the /usr/local path issues."
25 sed -i 's:~/.mplay/bin:/usr/bin:' mplay || die "Unable to fix cutmp3 path."
30 cd "$srcdir/$pkgname-$_pkgver"
33 install -d -m755 $pkgdir/usr/share/$pkgname/config
34 install -m644 help/help_* $pkgdir/usr/share/$pkgname
35 install -m644 files/.Xdefault* $pkgdir/usr/share/$pkgname/config
36 install -m644 files/mplayconf $pkgdir/usr/share/$pkgname/config
39 install -D -m755 mplay $pkgdir/usr/bin/mplay
40 install -D -m755 files/xmplay $pkgdir/usr/bin/xmplay
43 gzip -9nf help/mplay.1
44 install -D -m644 help/mplay.1.gz $pkgdir/usr/share/man/man1/mplay.1.gz
46 # vim:set ts=2 sw=2 et: