[arch-commits] Commit in rust-analyzer/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Nov 9 02:20:45 UTC 2021


    Date: Tuesday, November 9, 2021 @ 02:20:45
  Author: polyzen
Revision: 1039105

archrelease: copy trunk to testing-x86_64

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

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

Copied: rust-analyzer/repos/testing-x86_64/PKGBUILD (from rev 1039104, rust-analyzer/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-11-09 02:20:45 UTC (rev 1039105)
@@ -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