# $Id: PKGBUILD 205535 2014-02-06 19:58:31Z eric $ # Maintainer: Eric BĂ©langer pkgname=moc pkgver=2.5.0beta2 pkgrel=1 epoch=1 pkgdesc="An ncurses console audio player designed to be powerful and easy to use" arch=('i686' 'x86_64') url="http://moc.daper.net/" license=('GPL') depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file') makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2') 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' 'faad2: for using the aac plugin' 'libmodplug: for using the modplug plugin') source=(http://ftp.daper.net/pub/soft/moc/unstable/moc-${pkgver%b*}-${pkgver#*.*.?}.tar.bz2{,.sig}) sha1sums=('bf786d719c853c22dec74bc2ee565aae4596fbe7' 'SKIP') # source PKGBUILD && mksource mksource() { [[ -x /usr/bin/svn ]] || (echo "svn not found. Install subversion." && return 1) _svnver=2454 _svntrunk="svn://daper.net/moc/trunk" _svnmod="${pkgname}-${pkgver}" mkdir ${pkgname}-${pkgver} pushd ${pkgname}-${pkgver} svn co ${_svntrunk} --config-dir ./ -r ${_svnver} ${_svnmod} find . -depth -type d -name .svn -exec rm -rf {} \; tar -cJf ../${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver}/* popd rm -r ${pkgname}-${pkgver} gpg --detach-sign --use-agent -u ${GPGKEY} ${pkgname}-${pkgver}.tar.xz } build() { cd ${pkgname}-${pkgver%b*}-${pkgver#*.*.?} ./configure --prefix=/usr --without-rcc \ --with-oss --with-alsa --with-jack --with-aac --with-mp3 \ --with-musepack --with-vorbis --with-flac --with-wavpack \ --with-sndfile --with-modplug --with-ffmpeg --with-speex \ --with-samplerate --with-curl --disable-cache --disable-debug make } package() { cd ${pkgname}-${pkgver%b*}-${pkgver#*.*.?} make DESTDIR="${pkgdir}" install }