APP=cmus
VERSION=2.8.0
BUILD=1sml
HOMEPAGE="https://cmus.github.io/"
DOWNLOAD="https://github.com/cmus/cmus/archive/v2.8.0.tar.gz"
DESC="Fast text-mode music player"
REQUIRES="faad2 flac libao libsamplerate ffmpeg"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z* 
  cd $APP-$VERSION 
  fixbuilddirpermissions

  ./configure \
    prefix="" \
    exampledir="/doc/$APP-$VERSION/examples" \
  DEBUG=0

  make
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
471ca1a87792c5a63f56815b24c6d6d3237dc4ce18485dbada9010fa281c0d49b6282fb04e9274dd8ecfd2ade94e5fc6688701aa4479cb43e93d07f720e67785  cmus-2.8.0.tar.lz
"
