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

Johannes Löthberg demize at archlinux.org
Sat Sep 28 14:07:56 UTC 2019


    Date: Saturday, September 28, 2019 @ 14:07:56
  Author: demize
Revision: 363509

Clean up package_rust-docs and set description

Modified:
  rust/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 14:07:12 UTC (rev 363508)
+++ PKGBUILD	2019-09-28 14:07:56 UTC (rev 363509)
@@ -93,11 +93,15 @@
 }
 
 package_rust-docs() {
-  install -d "$pkgdir/usr/share/doc/"
+  description=('Documentation for the Rust programming language')
+
+  install -d "$pkgdir"/usr/share/doc/
   mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
 
-  for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+  cd "rustc-$pkgver-src"
+  for license in APACHE MIT; do
+    install -Dm644 "LICENSE-$license" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"
+  done
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list