community/viu: fix rust target setting

This commit is contained in:
psykose 2023-04-16 09:53:47 +00:00
parent efcd62685a
commit 8e5dcc3f1c

View File

@ -1,7 +1,7 @@
# Maintainer: omni <omni+alpine@hack.org>
pkgname=viu
pkgver=1.4.0
pkgrel=1
pkgrel=2
pkgdesc="Terminal image viewer"
# s390x: the trait `From<i32>` is not implemented for `u64` (in `terminal_size` crate)
arch="all !s390x"
@ -17,9 +17,10 @@ prepare() {
default_prepare
# Build against system-provided sixel.
local target=$(rustc -vV | sed -n 's/host: //p')
mkdir -p .cargo
cat >> .cargo/config.toml <<-EOF
[target.$CTARGET]
[target.$target]
sixel = { rustc-link-lib = ["sixel"] }
EOF