git-series: fix build.

This commit is contained in:
Leah Neukirchen 2021-02-20 22:03:54 +01:00
parent 0db3fef018
commit 3eb2c2ecf1

View file

@ -1,7 +1,7 @@
# Template file for 'git-series'
pkgname=git-series
version=0.9.1
revision=11
revision=12
build_style=cargo
hostmakedepends="cmake pkg-config perl"
makedepends="libgit2-devel libcurl-devel"
@ -12,11 +12,11 @@ license="MIT"
homepage="https://github.com/git-series/git-series"
distfiles="https://github.com/git-series/git-series/archive/${version}.tar.gz"
checksum=c0362e19d3fa168a7cb0e260fcdecfe070853b163c9f2dfd2ad8213289bc7e5f
broken="No longer builds with current Rust (broken url crate)"
post_extract() {
sed -i '/^git2 =/s/=.*/= "0.5"/' Cargo.toml
cargo update --package libc --precise 0.2.55
cargo update --package url --precise 1.7.2
}
pre_build() {
export LIBGIT2_SYS_USE_PKG_CONFIG=yes