# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libass
version=0.17.1
build=1sml
homepage="http://code.google.com/p/libass/"
download="https://github.com/libass/libass/archive/refs/tags/$version.tar.gz"
desc="Subtitle renderer for the ASS and SSA formats"
requires="glib nasm fribidi fontconfig freetype harfbuzz"

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

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

build() {
  ./configure \
    --prefix= \
    --enable-static=no \
    --enable-shared=yes

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
bdc997d7f9ff827f559f09363b53c4354d020499b9136233e8a1740f4182c7dc04d0b8f2ce31e94dca69854dd8c87ebcdbf216ffe7e7ad82d341e6249a04469d  libass-0.17.1.tar.lz
"