updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / moc-unstable-ape / PKGBUILD
blob03ed0f1ca5d551c6d55ed60664be1c54210851dd
1 # Contributor: xjpvictor <emailhuangke@gmail.com>
3 pkgname=moc-unstable-ape
4 pkgver=2.5.0
5 _ver=alpha4
6 pkgrel=1
7 pkgdesc="An ncurses console audio player with support for the mp3, ogg, and wave formats"
8 arch=('i686' 'x86_64')
9 url="http://moc.daper.net/"
10 license=('GPL')
11 depends=('libmad' 'libid3tag' 'jack-audio-connection-kit' 'curl>=7.16.2' 'libsamplerate' 'libtool')
12 makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec')
13 conflicts=('moc' 'moc-svn' 'moc-ape')
14 optdepends=('speex: for using the speex plugin' 'ffmpeg: for using the ffmpeg plugin' 'taglib and libmpcdec: for using the musepack plugin')
15 options=('!libtool')
16 source=(ftp://ftp.daper.net/pub/soft/moc/unstable/moc-${pkgver}-${_ver}.tar.bz2 moc-${pkgver}-${_ver}-ffmpeg.diff)
17 md5sums=('2dd0cb6481d77fda09c58ec3154a21c0' 'ff0f0691b054cc277375fbf3731bfc1e')
19 build() {
20   cd ${srcdir}/moc-${pkgver}-${_ver}
21   patch -p1 < ../moc-${pkgver}-${_ver}-ffmpeg.diff || return 1
22   sed -i 's|ffmpeg/avformat.h|libavformat/avformat.h|' decoder_plugins/ffmpeg/ffmpeg.c || return 1
23   ./configure --prefix=/usr --without-rcc || return 1
24   make || return 1
25   make DESTDIR=${pkgdir} install || return 1