APP=libkate
VERSION=0.4.1
BUILD=1sml
HOMEPAGE='https://wiki.xiph.org/OggKate'
DESC="codec providing karaoke and text support in Ogg"
REQUIRES="libogg libpng python3"

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

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

  patch -p1 < $SRCDIR/libkate-0.4.1-no-libfl.patch
 
  libtoolize --copy --force
  aclocal
  automake --add-missing --copy --force-missing

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

  make
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
f5db83caffa11ccc71626917e6199e5bb4da5d7531af33a899f2d6f452b6c104f8bf7fcc3c75d534fc1ebefff206a36b5099232aa991caefa99e883e8ad20562  libkate-0.4.1.tar.lz
f4cee4a8d309e424a51e03286a74ea6ecf403817343ea91a1c333f334e4ebf68630404b3a3393ca56b8582c8f1db4c1eea019a1141c3150fb75438e38258cdae  libkate-0.4.1-no-libfl.patch
"
