2018-01-22 22:16:32 +01:00
|
|
|
# Template file for 'mdcat'
|
|
|
|
pkgname=mdcat
|
2018-02-09 08:41:42 +01:00
|
|
|
version=0.8.0
|
2018-04-24 23:49:12 +02:00
|
|
|
revision=2
|
2018-01-22 22:16:32 +01:00
|
|
|
wrksrc=${pkgname}-${pkgname}-${version}
|
2018-02-09 08:41:42 +01:00
|
|
|
hostmakedepends="cargo cmake pkg-config"
|
|
|
|
makedepends="libressl-devel"
|
2018-01-22 22:16:32 +01:00
|
|
|
short_desc="Cat for markdown"
|
|
|
|
maintainer="Wilson Birney <wpb@360scada.com>"
|
|
|
|
license="Apache License 2.0"
|
|
|
|
homepage="https://github.com/lunaryorn/mdcat"
|
|
|
|
distfiles="https://github.com/lunaryorn/mdcat/archive/mdcat-${version}.tar.gz"
|
2018-02-09 08:41:42 +01:00
|
|
|
checksum=fb4ce097fff72fb53734568a8a1b96797cbedfbee2aabc2d2a5e8c794b1d5887
|
2018-01-22 22:16:32 +01:00
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
do_build() {
|
2018-04-24 23:49:12 +02:00
|
|
|
cargo update --package openssl-sys --precise 0.9.28
|
2018-01-22 22:16:32 +01:00
|
|
|
cargo build --release ${makejobs}
|
|
|
|
}
|
|
|
|
|
2018-01-30 22:38:30 +01:00
|
|
|
do_check() {
|
|
|
|
cargo check --release
|
|
|
|
}
|
|
|
|
|
2018-01-22 22:16:32 +01:00
|
|
|
do_install() {
|
|
|
|
vbin target/release/${pkgname}
|
|
|
|
}
|