app=twolame
version=0.4.0
build=1sml
homepage="https://www.twolame.org/"
download="https://downloads.sourceforge.net/twolame/twolame-$version.tar.gz"
desc="Optimised MP2 audio encoder"
requires="libsndfile flac"

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

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

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
cf9d23c15a16216ad1c3d11ff6f811eb28d2e07e940f0e9308f8f9917dd7af5c96f9ba4420f25c50beaa95f5cb9c6c1a094fb4d7ada6063114204716327938ef  twolame-0.4.0.tar.lz
"
