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

Daniel M. Capella polyzen at archlinux.org
Mon Jul 13 20:38:57 UTC 2020


    Date: Monday, July 13, 2020 @ 20:38:57
  Author: polyzen
Revision: 663537

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-13 20:38:34 UTC (rev 663536)
+++ PKGBUILD	2020-07-13 20:38:57 UTC (rev 663537)
@@ -1,35 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Sergey A. <murlakatamenka at disroot.org>
-
-pkgname=rust-analyzer
-pkgver=20200706
-_pkgver=2020-07-06
-pkgrel=1
-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=('6ad2c47eb4e683645ff586fd1e7fde3d434d1f376b75c716bde587140baf18491613e20e9e03fbc9aabb455fbb7b194bb702fba57c7de8e96d54920272415fdb')
-
-pkgver() {
-  echo ${_pkgver//-}
-}
-
-build() {
-  cd $pkgname-$_pkgver
-  cargo build --release --locked
-}
-
-# https://github.com/rust-analyzer/rust-analyzer/issues/4218#issuecomment-625612149
-# 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
-}

Copied: rust-analyzer/repos/community-x86_64/PKGBUILD (from rev 663536, rust-analyzer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-13 20:38:57 UTC (rev 663537)
@@ -0,0 +1,39 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Sergey A. <murlakatamenka at disroot.org>
+
+pkgname=rust-analyzer
+pkgver=20200713
+_pkgver=2020-07-13
+pkgrel=1
+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=('a002f61cdabba61e5bb899ece7b44a06ec04f2864a6c3b77bd93611a126fbbc46e64e891ab575c0c5c5dc6508060e65c44c312d464e37f8d71ec0f649e0cb9f5')
+
+prepare() {
+  cd $pkgname-$_pkgver
+  sed -i '/ensure_rustfmt()?;/d' xtask/src/lib.rs
+}
+
+pkgver() {
+  echo ${_pkgver//-}
+}
+
+build() {
+  cd $pkgname-$_pkgver
+  cargo build --release --locked
+}
+
+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