1 # Contributor: xjpvictor <emailhuangke@gmail.com>
6 pkgdesc="An ncurses console audio player with support for the mp3, ogg, and wave formats"
8 url="http://moc.daper.net/"
10 depends=('libmad' 'libid3tag' 'jack-audio-connection-kit' 'curl' 'libsamplerate' 'libtool')
11 makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug')
12 conflicts=('moc' 'moc-svn' 'moc-unstable-ape')
13 optdepends=('speex: for using the speex plugin' 'ffmpeg: for using the ffmpeg plugin' 'taglib and libmpcdec: for using the musepack plugin' 'wavpack: for using the wavpack plugin' 'libmodplug: for using the modplug plugin')
15 source=(ftp://ftp.daper.net/pub/soft/moc/unstable/moc-${pkgver/_/-}.tar.bz2 moc-${pkgver/_/-}-ffmpeg.diff)
16 md5sums=('2dd0cb6481d77fda09c58ec3154a21c0' 'ff0f0691b054cc277375fbf3731bfc1e')
19 cd "${srcdir}/moc-${pkgver/_/-}"
20 patch -p1 < ../moc-${pkgver/_/-}-ffmpeg.diff || return 1
21 sed -i 's|ffmpeg/avformat.h|libavformat/avformat.h|' decoder_plugins/ffmpeg/ffmpeg.c || return 1
22 ./configure --prefix=/usr --without-rcc --without-aac --with-oss --with-alsa --with-jack --with-mp3 --with-musepack --with-vorbis --with-flac --with-wavpack --with-sndfile --with-modplug --with-ffmpeg --with-speex --with-samplerate --with-curl || return 1
24 make DESTDIR=${pkgdir} install || return 1