diff --git a/srcpkgs/rav1e/template b/srcpkgs/rav1e/template index 80022e8ede1..beecec89fa6 100644 --- a/srcpkgs/rav1e/template +++ b/srcpkgs/rav1e/template @@ -16,17 +16,24 @@ case "$XBPS_TARGET_MACHINE" in esac post_build() { + local _slib= # 32 bit off_t, no idea how to widen it - if [ "$XBPS_WORDSIZE" = 32 ]; then return; fi + if [ "$XBPS_WORDSIZE" != 32 ]; then + _slib=yes + fi cargo auditable cbuild --release --target ${RUST_TARGET} \ - --library-type cdylib --library-type staticlib \ + --library-type cdylib ${_slib:+--library-type staticlib} \ --destdir="${DESTDIR}" --prefix="/usr" ${configure_args} } post_install() { - if [ "$XBPS_WORDSIZE" = 32 ]; then return; fi + local _slib= + # 32 bit off_t, no idea how to widen it + if [ "$XBPS_WORDSIZE" != 32 ]; then + _slib=yes + fi cargo auditable cinstall --release --target ${RUST_TARGET} \ - --library-type cdylib --library-type staticlib \ + --library-type cdylib ${_slib:+--library-type staticlib} \ --destdir="${DESTDIR}" --prefix="/usr" --offline --locked ${configure_args} vlicense LICENSE @@ -36,7 +43,7 @@ rav1e-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { - if [ -f "$DESTDIR/usr/lib/librav1e.a" ]; then + if [ "$XBPS_WORDSIZE" != 32 ]; then vmove "usr/lib/*.a" fi vmove "usr/lib/*.so"