# Maintainer: PktSurf <smlinux@pktsurf.in>
app=opusfile
version=0.11
build=2sml
homepage="https://opus-codec.org/"
download="https://downloads.xiph.org/releases/opus/opusfile-$version.tar.gz"
desc="dependency for the opus audio library"
requires="openssl libogg opus"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static 

  make
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
94ebf4d4c19cb3602093d1c37ae2dffd60fb4a29c2b2a21d9bb964567fa71b7f31d027cb705a09875f134dd67b8356b9217ee06ecaf851bd313197be20013922  opusfile-0.11.tar.lz
"
