# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libkate
version=0.4.1
build=2sml
homepage="https://wiki.xiph.org/OggKate"
desc="Codec providing karaoke and text support in Ogg"
requires="libogg libpng python3"

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

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

  applypatch $srcdir/libkate-0.4.1-no-libfl.patch
 
  libtoolize --copy --force
  aclocal
  automake --add-missing --copy --force-missing
}

build() {
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  mkfinalpkg
}

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