mdcat: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:18:41 +02:00 committed by Enno Boland
parent 421a26b220
commit 70d6175027

View file

@ -1,9 +1,10 @@
# Template file for 'mdcat' # Template file for 'mdcat'
pkgname=mdcat pkgname=mdcat
version=0.10.1 version=0.10.1
revision=1 revision=2
wrksrc="${pkgname}-${pkgname}-${version}" wrksrc="${pkgname}-${pkgname}-${version}"
hostmakedepends="cargo cmake pkg-config" build_style=cargo
hostmakedepends="cmake pkg-config"
makedepends="libressl-devel" makedepends="libressl-devel"
short_desc="Cat for markdown" short_desc="Cat for markdown"
maintainer="Wilson Birney <wpb@360scada.com>" maintainer="Wilson Birney <wpb@360scada.com>"
@ -11,17 +12,7 @@ license="Apache-2.0"
homepage="https://github.com/lunaryorn/mdcat" homepage="https://github.com/lunaryorn/mdcat"
distfiles="https://github.com/lunaryorn/mdcat/archive/mdcat-${version}.tar.gz" distfiles="https://github.com/lunaryorn/mdcat/archive/mdcat-${version}.tar.gz"
checksum=c946a6115e903675f8ebc786c7a628d982f2c490c68f9eb7d9986726477465d1 checksum=c946a6115e903675f8ebc786c7a628d982f2c490c68f9eb7d9986726477465d1
nocross=yes
do_build() { pre_build() {
cargo update --package openssl-sys --precise 0.9.28 cargo update --package openssl-sys --precise 0.9.28
cargo build --release ${makejobs}
}
do_check() {
cargo check --release
}
do_install() {
vbin target/release/${pkgname}
} }