[arch-commits] Commit in mdcat/repos/community-x86_64 (PKGBUILD PKGBUILD)
Daurnimator
daurnimator at gemini.archlinux.org
Fri Jan 21 12:36:45 UTC 2022
Date: Friday, January 21, 2022 @ 12:36:45
Author: daurnimator
Revision: 1112003
archrelease: copy trunk to community-x86_64
Added:
mdcat/repos/community-x86_64/PKGBUILD
(from rev 1112002, mdcat/trunk/PKGBUILD)
Deleted:
mdcat/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 114 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 57 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-21 12:36:29 UTC (rev 1112002)
+++ PKGBUILD 2022-01-21 12:36:45 UTC (rev 1112003)
@@ -1,57 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-# Contributor: Wesley Moore <wes at wezm.net>
-pkgname=mdcat
-pkgver=0.25.0
-pkgrel=1
-pkgdesc='Sophisticated Markdown rendering for the terminal'
-arch=('i686' 'x86_64')
-url="https://github.com/lunaryorn/mdcat"
-license=('MPL2')
-options=(!lto)
-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=('92fddabab24f2e7d673b06c1f31a7746abbb547c5581faaed17a8e3e1e5b17a5')
-
-build() {
- cd "$pkgname-$pkgname-$pkgver"
- rustc --version
- cargo --version
- 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 1112002, mdcat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-21 12:36:45 UTC (rev 1112003)
@@ -0,0 +1,57 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+# Contributor: Wesley Moore <wes at wezm.net>
+pkgname=mdcat
+pkgver=0.25.1
+pkgrel=1
+pkgdesc='Sophisticated Markdown rendering for the terminal'
+arch=('i686' 'x86_64')
+url="https://github.com/lunaryorn/mdcat"
+license=('MPL2')
+options=(!lto)
+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=('97d789b1e95c90383a79bdf0167d71d3151c9b441e52f553829d0ba4c4cc4e32')
+
+build() {
+ cd "$pkgname-$pkgname-$pkgver"
+ rustc --version
+ cargo --version
+ 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"
+}
More information about the arch-commits
mailing list