rpi-imager: fix ftbfs

Closes: #26597 [via git-merge-pr]
This commit is contained in:
Đoàn Trần Công Danh 2020-11-22 13:05:15 +07:00 committed by Michael Aldridge
parent dcd80637f9
commit 2a3ec8f592

View file

@ -3,8 +3,9 @@ pkgname=rpi-imager
version=1.4
revision=1
build_style=cmake
hostmakedepends="qt5-devel"
makedepends="qt5-devel qt5-declarative-devel qt5-svg-devel qt5-tools-devel libcurl-devel libarchive-devel util-linux"
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="qt5-devel qt5-declarative-devel qt5-svg-devel qt5-tools-devel
libcurl-devel libarchive-devel"
depends="qt5-quickcontrols2 qt5-svg util-linux"
short_desc="Raspberry Pi Imaging Utility"
maintainer="Adam Gausmann <agausmann@fastmail.com>"
@ -12,3 +13,11 @@ license="Apache-2.0"
homepage="https://github.com/raspberrypi/rpi-imager"
distfiles="https://github.com/raspberrypi/rpi-imager/archive/v${version}.tar.gz"
checksum="f42359fca67a61fa37f0dfd0167749b7d758263b8501c07473d416542d78e004"
post_patch() {
vsed -i -e 's/CURL REQUIRED \([0-9.]*\)/CURL \1 REQUIRED/' CMakeLists.txt
}
pre_configure() {
ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
}