# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libass
version=0.14.0
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="
1876292d06d2f68938f1b4140dad4871fa2614fd84ac9cfb35bbdeb26130c3db96a345572f1f236c2ab2a902b0f2f288d4bdc60d1443ce80ccce43f51e6ae102  libass-0.14.0.tar.lz
"
