testing/mdcat: new aport

https://github.com/lunaryorn/mdcat
Cat for markdown
This commit is contained in:
Leo 2019-12-27 18:04:15 +01:00
parent 0c7eb6c058
commit 948051bdf2

30
testing/mdcat/APKBUILD Normal file
View File

@ -0,0 +1,30 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=mdcat
pkgver=0.14.0
pkgrel=0
pkgdesc="Cat for markdown"
url="https://github.com/lunaryorn/mdcat"
arch="all !s390x" # Limited by cargo
license="Apache-2.0"
makedepends="cargo oniguruma-dev openssl-dev"
checkdepends="py3-ansi2html"
source="$pkgname-$pkgver.tar.gz::https://github.com/lunaryorn/mdcat/archive/mdcat-$pkgver.tar.gz"
builddir="$srcdir/mdcat-mdcat-$pkgver"
export RUSTONIG_DYNAMIC_LIBONING=1
build() {
cargo build --release --locked
}
check() {
cargo test --release
}
package() {
cargo install --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates.toml
}
sha512sums="241e3e3c5c15d9b1c59218b8741ae1791517c2d66dcdff3d570e9971d56669d005ca6239404ccc769ee7a1841f1be5e5a64f098ac4577b7410321259abe8a148 mdcat-0.14.0.tar.gz"