[arch-commits] Commit in rust-analyzer/repos (2 files)

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Nov 9 05:49:03 UTC 2021


    Date: Tuesday, November 9, 2021 @ 05:49:02
  Author: polyzen
Revision: 1039108

archrelease: copy trunk to community-testing-x86_64

Added:
  rust-analyzer/repos/community-testing-x86_64/
  rust-analyzer/repos/community-testing-x86_64/PKGBUILD
    (from rev 1039107, rust-analyzer/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: rust-analyzer/repos/community-testing-x86_64/PKGBUILD (from rev 1039107, rust-analyzer/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-11-09 05:49:02 UTC (rev 1039108)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Sergey A. <murlakatamenka at disroot.org>
+
+pkgname=rust-analyzer
+_pkgver=2021-11-08
+pkgver=${_pkgver//-}
+pkgrel=2
+pkgdesc='Rust compiler front-end for IDEs'
+arch=('x86_64')
+url=https://rust-analyzer.github.io/
+license=('Apache' 'MIT')
+depends=('gcc-libs' 'rust-src')
+makedepends=('git')
+source=("git+https://github.com/rust-analyzer/rust-analyzer.git#tag=$_pkgver")
+b2sums=('SKIP')
+
+prepare() {
+  cd $pkgname
+  cargo fetch --locked
+}
+
+build() {
+  cd $pkgname
+  RUST_ANALYZER_REV=$_pkgver cargo build --release --locked --offline
+}
+
+package() {
+  cd $pkgname
+  install -Dt "$pkgdir"/usr/bin target/release/rust-analyzer
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE-MIT
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list