[arch-commits] Commit in rust/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Tue Oct 1 23:26:04 UTC 2019
Date: Tuesday, October 1, 2019 @ 23:26:04
Author: heftig
Revision: 363639
Simplify license install
Modified:
rust/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-01 21:12:07 UTC (rev 363638)
+++ PKGBUILD 2019-10-01 23:26:04 UTC (rev 363639)
@@ -57,8 +57,7 @@
DESTDIR="$pkgdir" python ./x.py install
- for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
# delete unnecesary files, e.g. components and manifest files only used for the uninstall script
cd "$pkgdir"/usr/lib/rustlib
@@ -88,9 +87,7 @@
mv "$srcdir"/i686-unknown-linux-gnu "$pkgdir"/usr/lib/rustlib
cd "rustc-$pkgver-src"
- for license in APACHE MIT; do
- install -Dm644 "LICENSE-$license" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"
- done
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
}
package_rust-docs() {
@@ -100,9 +97,7 @@
mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
cd "rustc-$pkgver-src"
- for license in APACHE MIT; do
- install -Dm644 "LICENSE-$license" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"
- done
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list