diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 18:04:15 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 18:26:49 +0100 |
commit | 948051bdf20d8372ed52eaf16da32f158af940f4 (patch) | |
tree | 17b9ef8cd59ed5edea266c148bfd15112134cda9 /testing/mdcat | |
parent | 0c7eb6c058dd0fa9f2d42eb728b070bde51e8e98 (diff) | |
download | aports-948051bdf20d8372ed52eaf16da32f158af940f4.tar.bz2 aports-948051bdf20d8372ed52eaf16da32f158af940f4.tar.xz |
testing/mdcat: new aport
https://github.com/lunaryorn/mdcat
Cat for markdown
Diffstat (limited to 'testing/mdcat')
-rw-r--r-- | testing/mdcat/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/mdcat/APKBUILD b/testing/mdcat/APKBUILD new file mode 100644 index 0000000000..01cf7c5596 --- /dev/null +++ b/testing/mdcat/APKBUILD @@ -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" |