Date: Sunday, October 31, 2021 @ 09:05:48 Author: hashworks Revision: 1035044
archrelease: copy trunk to community-x86_64 Added: mdcat/repos/community-x86_64/PKGBUILD (from rev 1035043, mdcat/trunk/PKGBUILD) Deleted: mdcat/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 108 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-10-31 09:05:41 UTC (rev 1035043) +++ PKGBUILD 2021-10-31 09:05:48 UTC (rev 1035044) @@ -1,54 +0,0 @@ -# Maintainer: Daurnimator <daurnima...@archlinux.org> -# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> -# Contributor: Wesley Moore <w...@wezm.net> -pkgname=mdcat -pkgver=0.23.2 -pkgrel=1 -pkgdesc='Sophisticated Markdown rendering for the terminal' -arch=('i686' 'x86_64') -url="https://github.com/lunaryorn/mdcat" -license=('MPL2') -depends=('gcc-libs' 'openssl') -makedepends=('cargo' 'asciidoctor') -optdepends=('librsvg: used to render SVG images in kitty') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver.tar.gz") -sha256sums=('354f1bea0a53c5547693b7de9731d6e2648a0da10aa485ca16e4e643e49be14c') - -build() { - cd "$pkgname-$pkgname-$pkgver" - cargo build --release --locked --target-dir=target -} - -check() { - cd "$pkgname-$pkgname-$pkgver" - cargo test --release --locked -} - -package() { - cd "$pkgname-$pkgname-$pkgver" - - install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" - # Hard link binary as mdless. When invoked as mdless mdcat will paginate - # output by default. - ( cd "$pkgdir/usr/bin" && ln "$pkgname" mdless ) - - # Required until https://github.com/rust-lang/cargo/issues/6790 - # Should never fail with extra-x86_64-build - COMPLETIONS_DIR="$(find target/release/build -type d -path "target/release/build/mdcat-*/out/completions")" - if [ ! "$(echo "$COMPLETIONS_DIR" | wc -l)" -eq 1 ]; then - >&2 echo "Error: Unexpected count of completions dirs" - return 1 - fi - - install -Dm644 "$COMPLETIONS_DIR/_mdcat" \ - "$pkgdir/usr/share/zsh/site-functions/_mdcat" - install -Dm644 "$COMPLETIONS_DIR/mdcat.bash" \ - "$pkgdir/usr/share/bash-completion/completions/mdcat" - install -Dm644 "$COMPLETIONS_DIR/mdcat.fish" \ - "$pkgdir/usr/share/fish/vendor_completions.d/mdcat.fish" - - MANPAGE="$COMPLETIONS_DIR/../mdcat.1" - gzip -n "$MANPAGE" - install -Dm 644 "$MANPAGE.gz" \ - "$pkgdir/usr/share/man/man1/mdcat.1.gz" -} Copied: mdcat/repos/community-x86_64/PKGBUILD (from rev 1035043, mdcat/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-10-31 09:05:48 UTC (rev 1035044) @@ -0,0 +1,54 @@ +# Maintainer: Daurnimator <daurnima...@archlinux.org> +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> +# Contributor: Wesley Moore <w...@wezm.net> +pkgname=mdcat +pkgver=0.24.1 +pkgrel=1 +pkgdesc='Sophisticated Markdown rendering for the terminal' +arch=('i686' 'x86_64') +url="https://github.com/lunaryorn/mdcat" +license=('MPL2') +depends=('gcc-libs' 'openssl') +makedepends=('cargo' 'asciidoctor') +optdepends=('librsvg: used to render SVG images in kitty') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver.tar.gz") +sha256sums=('f0e400f2060a460e347546932fcb501da71fab5af602413c7932fac35136b89f') + +build() { + cd "$pkgname-$pkgname-$pkgver" + cargo build --release --locked --target-dir=target +} + +check() { + cd "$pkgname-$pkgname-$pkgver" + cargo test --release --locked +} + +package() { + cd "$pkgname-$pkgname-$pkgver" + + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + # Hard link binary as mdless. When invoked as mdless mdcat will paginate + # output by default. + ( cd "$pkgdir/usr/bin" && ln "$pkgname" mdless ) + + # Required until https://github.com/rust-lang/cargo/issues/6790 + # Should never fail with extra-x86_64-build + COMPLETIONS_DIR="$(find target/release/build -type d -path "target/release/build/mdcat-*/out/completions")" + if [ ! "$(echo "$COMPLETIONS_DIR" | wc -l)" -eq 1 ]; then + >&2 echo "Error: Unexpected count of completions dirs" + return 1 + fi + + install -Dm644 "$COMPLETIONS_DIR/_mdcat" \ + "$pkgdir/usr/share/zsh/site-functions/_mdcat" + install -Dm644 "$COMPLETIONS_DIR/mdcat.bash" \ + "$pkgdir/usr/share/bash-completion/completions/mdcat" + install -Dm644 "$COMPLETIONS_DIR/mdcat.fish" \ + "$pkgdir/usr/share/fish/vendor_completions.d/mdcat.fish" + + MANPAGE="$COMPLETIONS_DIR/../mdcat.1" + gzip -n "$MANPAGE" + install -Dm 644 "$MANPAGE.gz" \ + "$pkgdir/usr/share/man/man1/mdcat.1.gz" +}