# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libass pkgver=0.10.1 pkgrel=1 pkgdesc="A portable library for SSA/ASS subtitles rendering" url="http://code.google.com/p/libass/" arch="all" license="GPL" depends="" makedepends="pkgconfig enca-dev fontconfig-dev libpng-dev fribidi-dev" subpackages="$pkgname-dev" source="http://libass.googlecode.com/files/${pkgname}-${pkgver}.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/*.la } md5sums="0f54b1f3a24fa897ebbbcc5bc744b32a libass-0.10.1.tar.xz"