[arch-commits] Commit in rust-analyzer/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Mon Jan 4 02:49:22 UTC 2021


    Date: Monday, January 4, 2021 @ 02:49:20
  Author: polyzen
Revision: 806342

upgpkg: rust-analyzer 20201228-2: Use Git sources to fix version option

Modified:
  rust-analyzer/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-04 02:47:21 UTC (rev 806341)
+++ PKGBUILD	2021-01-04 02:49:20 UTC (rev 806342)
@@ -4,22 +4,23 @@
 pkgname=rust-analyzer
 _pkgver=2020-12-28
 pkgver=${_pkgver//-}
-pkgrel=1
+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")
-b2sums=('8744053fa38ddde0e04cab7aed879694a151757f06bc4f031261606ad3a1f16522833c0a0875da1802236bf766834ecd4de5d8171498aa15659048d249c8b961')
+makedepends=('git')
+source=("git+$url.git#tag=$_pkgver")
+b2sums=('SKIP')
 
 build() {
-  cd $pkgname-$_pkgver
+  cd $pkgname
   cargo build --release --locked
 }
 
 package() {
-  cd $pkgname-$_pkgver
+  cd $pkgname
   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