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

Daniel M. Capella polyzen at archlinux.org
Tue May 5 22:05:58 UTC 2020


    Date: Tuesday, May 5, 2020 @ 22:05:57
  Author: polyzen
Revision: 624991

archrelease: copy trunk to community-x86_64

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

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

Copied: rust-analyzer/repos/community-x86_64/PKGBUILD (from rev 624990, rust-analyzer/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-05-05 22:05:57 UTC (rev 624991)
@@ -0,0 +1,35 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Sergey A. <murlakatamenka at disroot.org>
+
+pkgname=rust-analyzer
+pkgver=20200504
+_pkgver=2020-05-04
+pkgrel=2
+pkgdesc='Experimental Rust compiler front-end for IDEs'
+arch=('x86_64')
+url=https://github.com/rust-analyzer/rust-analyzer
+license=('Apache' 'MIT')
+depends=('gcc-libs' 'rust')
+source=("$url/archive/$_pkgver/$pkgname-$_pkgver.tar.gz")
+sha512sums=('5e6a3d73560d7a856937620af79052378d60dff55beec4950ed3511fab07f9e56e13cf62cea77842c19c718df570d8e31744055058776d1230ee722c7ec66d2d')
+
+pkgver() {
+  echo ${_pkgver//-}
+}
+
+build() {
+  cd $pkgname-$_pkgver
+  cargo build --release --locked
+}
+
+# https://github.com/rust-analyzer/rust-analyzer/pull/4219#issuecomment-624319218
+# check() {
+#   cd $pkgname-$_pkgver
+#   cargo test --release --locked
+# }
+
+package() {
+  cd $pkgname-$_pkgver
+  install -Dt "$pkgdir"/usr/bin target/release/rust-analyzer
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE-MIT
+}



More information about the arch-commits mailing list