rav1e: Only disable static libs

This commit is contained in:
Đoàn Trần Công Danh 2023-08-03 16:07:43 +07:00
parent ac85fc00f4
commit 5e599e4efa

View File

@ -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"