# Maintianer: Thomas Dziedzic < gostrc at gmail > # Contributor: Cainã Costa # Contributor: Paulo Matias # Changes: kotyz # Modified by Ondřej Svoboda to contain a patch to support a StreamMetadataEncoding configuration option pkgname=moc-svn-sme pkgver=2246 pkgrel=1 pkgdesc="A ncurses console audio player with support for the mp3, ogg, and wave formats" url="http://moc.daper.net/" arch=('i686' 'x86_64') license=('GPL') depends=('libmad' 'libid3tag' 'jack' 'curl' 'libsamplerate' 'libtool') makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'subversion') optdepends=('speex: for using the speex plugin' 'ffmpeg: for using the ffmpeg plugin' 'taglib: for using the musepack plugin' 'libmpcdec: for using the musepack plugin' 'wavpack: for using the wavpack plugin' 'libmodplug: for using the modplug plugin') conflicts=('moc') provides=('moc') options=('!libtool' 'force') source=('moc-r2246-stream-metadata-encoding.patch') md5sums=('9ab35cf228aa581674ba0f69ce009452') _svntrunk=svn://daper.net/moc/trunk _svnmod=moc-svn-sme build() { if [ -d $_svnmod/.svn ]; then (cd $_svnmod && svn up -r $pkgver) else svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod fi msg "SVN checkout done or server timeout" cd ${pkgname} # Revert all changes first to make it possible to rebuild the package easily. svn revert * >/dev/null msg "Patching MOC's source to support a StreamMetadataEncoding configuration option" patch -Np0 -i ../moc-r2246-stream-metadata-encoding.patch msg "Starting make..." export CPPFLAGS="$CPPFLAGS -I/usr/lib/oss/include" libtoolize -f ./autogen.sh ./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 \ --disable-debug make } package() { cd ${pkgname} make DESTDIR=${pkgdir} install }