From 8e5dcc3f1ca88bdbdc9a1e609c7f8a6ce98c5392 Mon Sep 17 00:00:00 2001 From: psykose Date: Sun, 16 Apr 2023 09:53:47 +0000 Subject: [PATCH] community/viu: fix rust target setting --- community/viu/APKBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/community/viu/APKBUILD b/community/viu/APKBUILD index 9025b138e4b..0f17849028e 100644 --- a/community/viu/APKBUILD +++ b/community/viu/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: omni pkgname=viu pkgver=1.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Terminal image viewer" # s390x: the trait `From` 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