git-series: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 00:58:23 +02:00 committed by Enno Boland
parent 739bb8aa08
commit 5623f1ff62

View file

@ -1,8 +1,9 @@
# Template file for 'git-series' # Template file for 'git-series'
pkgname=git-series pkgname=git-series
version=0.9.1 version=0.9.1
revision=7 revision=8
hostmakedepends="cargo cmake pkg-config rust perl" build_style=cargo
hostmakedepends="cmake pkg-config perl"
makedepends="libgit2-devel libcurl-devel" makedepends="libgit2-devel libcurl-devel"
depends="git" depends="git"
short_desc="Track patch series in git" short_desc="Track patch series in git"
@ -11,17 +12,14 @@ license="MIT"
homepage="https://github.com/git-series/git-series" homepage="https://github.com/git-series/git-series"
distfiles="https://github.com/git-series/git-series/archive/${version}.tar.gz" distfiles="https://github.com/git-series/git-series/archive/${version}.tar.gz"
checksum=c0362e19d3fa168a7cb0e260fcdecfe070853b163c9f2dfd2ad8213289bc7e5f checksum=c0362e19d3fa168a7cb0e260fcdecfe070853b163c9f2dfd2ad8213289bc7e5f
nocross=yes
post_extract() { post_extract() {
sed -i '/^git2 =/s/=.*/= "0.5"/' Cargo.toml sed -i '/^git2 =/s/=.*/= "0.5"/' Cargo.toml
} }
do_build() { pre_build() {
export LIBGIT2_SYS_USE_PKG_CONFIG=yes export LIBGIT2_SYS_USE_PKG_CONFIG=yes
cargo build --release
} }
do_install() { post_install() {
vbin target/release/git-series
vman git-series.1 vman git-series.1
vlicense LICENSE.txt vlicense LICENSE.txt
} }