# Maintainer: PktSurf <smlinux@pktsurf.in>
app=cmus
version=2.8.0
build=2sml
homepage="https://cmus.github.io/"
download="https://github.com/cmus/cmus/archive/v$version.tar.gz"
desc="Fast text-mode music player"
requires="faad2 flac libao libsamplerate ffmpeg"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z* 
  cd $app-$version 
  fixbuilddirpermissions
}

build() {
  ./configure \
    prefix="" \
    exampledir="/share/doc/$app-$version/examples"

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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