[arch-commits] Commit in (4 files)

Daniel M. Capella polyzen at archlinux.org
Tue May 5 22:00:14 UTC 2020


    Date: Tuesday, May 5, 2020 @ 22:00:13
  Author: polyzen
Revision: 624989

Initial commit

Added:
  rust-analyzer/
  rust-analyzer/repos/
  rust-analyzer/trunk/
  rust-analyzer/trunk/PKGBUILD

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

Added: rust-analyzer/trunk/PKGBUILD
===================================================================
--- rust-analyzer/trunk/PKGBUILD	                        (rev 0)
+++ rust-analyzer/trunk/PKGBUILD	2020-05-05 22:00:13 UTC (rev 624989)
@@ -0,0 +1,36 @@
+# 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-APACHE
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE-MIT
+}



More information about the arch-commits mailing list