APP=libass
VERSION=0.14.0
BUILD=1sml
HOMEPAGE="http://code.google.com/p/libass/"
DOWNLOAD="https://github.com/libass/libass/archive/refs/tags/0.14.0.tar.gz"
DESC="Subtitle renderer for the ASS/SSA formats"
REQUIRES="glib nasm fribidi fontconfig freetype harfbuzz "

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-static=no \
    --enable-shared=yes \
    --disable-silent-rules 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
1876292d06d2f68938f1b4140dad4871fa2614fd84ac9cfb35bbdeb26130c3db96a345572f1f236c2ab2a902b0f2f288d4bdc60d1443ce80ccce43f51e6ae102  libass-0.14.0.tar.lz
"
