aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorS.M Mukarram Nainar <theone@sm2n.ca>2022-02-18 07:25:07 -0500
committerdispatch <dispatch@listserv.local>2022-02-18 12:25:36 +0000
commitaa4b40e6a5829f4f2a4c29c8f5101edde3172fc8 (patch)
tree68a17ef5fe0728624acb467ef5cfdc504dbedb43
parentd0998f4e7b9b935fa3328277843be3de4ced1eb4 (diff)
downloadaports-patches/3947.tar.gz
aports-patches/3947.tar.bz2
aports-patches/3947.tar.xz
testing/rust-analyzer: new aportpatches/3947
https://github.com/rust-analyzer/rust-analyzer A Rust compiler front-end for IDEs
-rw-r--r--testing/rust-analyzer/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/rust-analyzer/APKBUILD b/testing/rust-analyzer/APKBUILD
new file mode 100644
index 0000000000..3be97ba907
--- /dev/null
+++ b/testing/rust-analyzer/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: S.M Mukarram Nainar <theone@sm2n.ca>
+# Maintainer: S.M Mukarram Nainar <theone@sm2n.ca>
+pkgname=rust-analyzer
+_pkgver="2022-02-14"
+pkgver=${_pkgver//-}
+pkgrel=0
+pkgdesc="A Rust compiler front-end for IDEs"
+url="https://github.com/rust-analyzer/rust-analyzer"
+# limited by rust, x86/armhf/armv7 fail tests
+arch="x86_64 aarch64 ppc64le"
+license="MIT Apache-2.0"
+depends="rust-src"
+makedepends="cargo"
+checkdepends="rustfmt"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/rust-analyzer/rust-analyzer/archive/refs/tags/$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$_pkgver"
+
+prepare() {
+ default_prepare
+
+ cargo fetch --locked
+}
+
+build() {
+ cargo build --frozen --release
+}
+
+check() {
+ cargo test --frozen
+}
+
+package() {
+ install -Dm755 "$pkgdir"/usr/bin target/release/rust-analyzer
+
+ install -Dm644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
+ install -Dm644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE
+
+ install -Dm644 docs/user/manual.adoc "$pkgdir"/usr/share/doc/$pkgname/manual.adoc
+}
+
+sha512sums="
+cad62bc2837daadf17fadd3e4ccb2cc9ea4203f14cdac6931548a025b2cd5daef5f4b645d36381fea5a5baf44b301d8b83f0136c095dcc3b500df476baab6f1b rust-analyzer-20220214.tar.gz
+"