void-packages/srcpkgs/rav1e/template

42 lines
1.1 KiB
Bash

# Template file for 'rav1e'
pkgname=rav1e
version=0.6.6
revision=2
build_style=cargo
hostmakedepends="cargo-c"
short_desc="Fastest and safest AV1 encoder"
maintainer="oreo639 <oreo6391@gmail.com>"
license="BSD-2-Clause"
homepage="https://crates.io/crates/rav1e"
distfiles="https://static.crates.io/crates/rav1e/rav1e-${version}.crate"
checksum=16c383692a5e7abd9f6d1eddb1a5e0269f859392387883361bb09e5555852ec1
case "$XBPS_TARGET_MACHINE" in
x86_64*) hostmakedepends+=" nasm" ;;
esac
post_build() {
cargo auditable cbuild --release --target ${RUST_TARGET} \
--library-type cdylib --library-type staticlib \
--destdir="${DESTDIR}" --prefix="/usr" ${configure_args}
}
post_install() {
cargo auditable cinstall --release --target ${RUST_TARGET} \
--library-type cdylib --library-type staticlib \
--destdir="${DESTDIR}" --prefix="/usr" --offline --locked ${configure_args}
vlicense LICENSE
}
rav1e-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/include
}
}