rav1e: restore build on i686

This commit is contained in:
Đoàn Trần Công Danh 2023-08-03 23:31:32 +07:00
parent ad127539ec
commit 00fcc82146

View file

@ -14,29 +14,16 @@ checksum=16c383692a5e7abd9f6d1eddb1a5e0269f859392387883361bb09e5555852ec1
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
x86_64*) hostmakedepends+=" nasm" ;; x86_64*) hostmakedepends+=" nasm" ;;
esac esac
if [ "$XBPS_WORDSIZE" = 32 ]; then
broken="broken large file offset support"
fi
post_build() { post_build() {
local _slib=
# 32 bit off_t, no idea how to widen it
if [ "$XBPS_WORDSIZE" != 32 ]; then
_slib=yes
fi
cargo auditable cbuild --release --target ${RUST_TARGET} \ cargo auditable cbuild --release --target ${RUST_TARGET} \
--library-type cdylib ${_slib:+--library-type staticlib} \ --library-type cdylib --library-type staticlib \
--destdir="${DESTDIR}" --prefix="/usr" ${configure_args} --destdir="${DESTDIR}" --prefix="/usr" ${configure_args}
} }
post_install() { post_install() {
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} \ cargo auditable cinstall --release --target ${RUST_TARGET} \
--library-type cdylib ${_slib:+--library-type staticlib} \ --library-type cdylib --library-type staticlib \
--destdir="${DESTDIR}" --prefix="/usr" --offline --locked ${configure_args} --destdir="${DESTDIR}" --prefix="/usr" --offline --locked ${configure_args}
vlicense LICENSE vlicense LICENSE
@ -46,9 +33,7 @@ rav1e-devel_package() {
depends="${sourcepkg}>=${version}_${revision}" depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
if [ "$XBPS_WORDSIZE" != 32 ]; then vmove "usr/lib/*.a"
vmove "usr/lib/*.a"
fi
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove usr/include vmove usr/include