app=libvorbis
version=1.3.6
build=1sml
homepage="https://xiph.org/vorbis/"
download="https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-$version.tar.xz"
desc="Ogg Vorbis library"
requires="libogg"

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="
880b43e4d2ac7773cc3ac83cf5e36889fc674a7741f52d94561ab9b03c3c101e3bd9b3ab3903fba5804f8b7d499465cc3c434ec05d4f1993d10b1447bbba6465  libvorbis-1.3.6.tar.lz
"
