git-brws: fix build on Rust 1.64+

This commit is contained in:
Jan Christian Grünhage 2023-04-04 11:31:50 +02:00 committed by Michal Vasilek
parent e58c9c0efb
commit 6d5ce8dc53

View file

@ -1,7 +1,7 @@
# Template file for 'git-brws' # Template file for 'git-brws'
pkgname=git-brws pkgname=git-brws
version=0.11.12 version=0.11.12
revision=2 revision=3
build_style=cargo build_style=cargo
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="openssl-devel" makedepends="openssl-devel"
@ -11,10 +11,15 @@ license="MIT"
homepage="https://rhysd.github.io/git-brws/" homepage="https://rhysd.github.io/git-brws/"
distfiles="https://github.com/rhysd/git-brws/archive/v${version}.tar.gz" distfiles="https://github.com/rhysd/git-brws/archive/v${version}.tar.gz"
checksum=3a4bbf93f0b16562260ca66c2b60c655d5bfc690d0229d11757be76d95cb81c5 checksum=3a4bbf93f0b16562260ca66c2b60c655d5bfc690d0229d11757be76d95cb81c5
# Tests require git checkout and partially also GitHub tokens
make_check=no
pre_build() { pre_build() {
# fixes an indexmap error when cross compiling # fixes an indexmap error when cross compiling
cargo update --package autocfg:1.0.1 --precise 1.1.0 cargo update --package autocfg:1.0.1 --precise 1.1.0
# fixes compilation on Rust 1.64 and higher
cargo update --package socket2:0.3.15 --precise 0.3.16
} }
post_install() { post_install() {