void-packages/srcpkgs/git-brws/template

32 lines
966 B
Bash

# Template file for 'git-brws'
pkgname=git-brws
version=0.11.12
revision=4
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="CLI tool for opening web page of the hoster for a git remote"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://rhysd.github.io/git-brws/"
distfiles="https://github.com/rhysd/git-brws/archive/v${version}.tar.gz"
checksum=3a4bbf93f0b16562260ca66c2b60c655d5bfc690d0229d11757be76d95cb81c5
# Tests require git checkout and partially also GitHub tokens
make_check=no
post_patch() {
# fixes an indexmap error when cross compiling
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
# required for openssl3 compat
cargo update --package openssl-sys:0.9.58 --precise 0.9.80
cargo update --package openssl:0.10.30 --precise 0.10.45
}
post_install() {
vlicense LICENSE.txt
}