# Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=moc pkgver=2.5.1 pkgrel=0 pkgdesc="MOC is a console audio player" url="http://moc.daper.net/" arch="all" license="GPL" depends="" depends_dev="" makedepends="curl-dev libtool file ffmpeg-dev speex-dev alsa-lib-dev libmodplug-dev faad2-dev jack-dev libmad-dev ncurses-dev" install="" subpackages="$pkgname-doc" source="http://ftp.daper.net/pub/soft/moc/stable/moc-${pkgver}.tar.bz2" _builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="${pkgdir}" install } md5sums="ea9c8edb8b7a64a0b93d540293d3ff74 moc-2.5.1.tar.bz2" sha256sums="1b419c75a92a85ff4ee7670c65d660c86fef32032c65e89e868b988f80fac4f2 moc-2.5.1.tar.bz2" sha512sums="9e22ce72a96cb6e5e948af509c8b7528155fe50e8b5130d78363b6cd57f731f8847bd770cd2c2363a7b9ed70a16b55c7fc1672b2b981ae207c1abd35c2acc301 moc-2.5.1.tar.bz2"