void-packages/srcpkgs/libass/template

38 lines
994 B
Bash

# Template file for 'libass'
pkgname=libass
version=0.17.2
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="enca-devel fontconfig-devel fribidi-devel harfbuzz-devel"
short_desc="Portable library for SSA/ASS subtitles rendering"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/libass/libass/"
changelog="https://raw.githubusercontent.com/libass/libass/master/Changelog"
distfiles="https://github.com/libass/libass/archive/${version}.tar.gz"
checksum=db30b6122a9c6fb5a29e0ed8393b37d3dc5b0ef0025043fff631f863b28ea477
case "$XBPS_TARGET_MACHINE" in
i686* | x86_64*) hostmakedepends+=" nasm"
esac
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING
}
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"
}
}