# Template build file for 'libass.
pkgname=libass
version=0.10.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="enca-devel fontconfig-devel fribidi-devel harfbuzz-devel>=0.9.5"
short_desc="A portable library for SSA/ASS subtitles rendering"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://code.google.com/p/libass/"
license="MIT"
distfiles="http://libass.googlecode.com/files/${pkgname}-${version}.tar.xz"
checksum=f02afcc6410b800f0007dc7c282e897dab64f817c23b37d171fd6ff7fc4ca1d8

post_install() {
	vinstall COPYING 644 usr/share/licenses/${pkgname}
}

libass-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/*.a
		vmove usr/lib/*.so
	}
}
