[arch-commits] Commit in git-delta/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Feb 15 06:34:26 UTC 2022


    Date: Tuesday, February 15, 2022 @ 06:34:26
  Author: grawlinson
Revision: 1133323

upgpkg: git-delta; generate html manual

Modified:
  git-delta/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-15 06:26:42 UTC (rev 1133322)
+++ PKGBUILD	2022-02-15 06:34:26 UTC (rev 1133323)
@@ -12,7 +12,7 @@
 url="https://github.com/dandavison/delta"
 license=('MIT')
 depends=('libgit2')
-makedepends=('rust')
+makedepends=('rust' 'mdbook')
 checkdepends=('git')
 options=('!lto')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
@@ -21,12 +21,20 @@
 
 prepare() {
   cd "$_pkgname-$pkgver"
+
+  # download dependencies
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
 build() {
   cd "$_pkgname-$pkgver"
+
+  # binary
   cargo build --frozen --release --all-features
+
+  # html manual
+  cd manual
+  mdbook build
 }
 
 check() {
@@ -53,4 +61,5 @@
 
   # documentation
   install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+  cp -r manual/book/* "$pkgdir/usr/share/doc/$pkgname"
 }



More information about the arch-commits mailing list