void-packages/srcpkgs/libaom/template

38 lines
1002 B
Bash

# Template file for 'libaom'
pkgname=libaom
version=1.0.0.1
revision=2
create_wrksrc=yes
build_style=cmake
configure_args="-DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_TESTS=OFF"
hostmakedepends="yasm doxygen perl python"
short_desc="AV1 Codec library implementation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://aomedia.org/"
changelog="https://aomedia.googlesource.com/aom/+/master/CHANGELOG"
distfiles="https://aomedia.googlesource.com/aom/+archive/v${version%.*}-errata${version##*.}.tar.gz"
checksum=@0f1e812ca6d3b3809bf3f7a12a85b549c96d20bfa72fa606a682541bbc3eaeab
post_install() {
vlicense LICENSE
}
libaom-devel_package() {
depends="libaom-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libaom-tools_package() {
short_desc+=" - utilities for enconding and decoding AV1"
pkg_install() {
vmove usr/bin/aomdec
vmove usr/bin/aomenc
}
}