[arch-commits] Commit in cargo-msrv/repos (community-x86_64 community-x86_64/PKGBUILD)

Orhun Parmaksiz orhun at gemini.archlinux.org
Mon Jan 31 16:11:35 UTC 2022


    Date: Monday, January 31, 2022 @ 16:11:34
  Author: orhun
Revision: 1121251

archrelease: copy trunk to community-x86_64

Added:
  cargo-msrv/repos/community-x86_64/
  cargo-msrv/repos/community-x86_64/PKGBUILD
    (from rev 1121250, cargo-msrv/trunk/PKGBUILD)

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

Copied: cargo-msrv/repos/community-x86_64/PKGBUILD (from rev 1121250, cargo-msrv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-31 16:11:34 UTC (rev 1121251)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=cargo-msrv
+pkgver=0.14.0
+pkgrel=1
+pkgdesc="Find the minimum supported Rust version (MSRV) for your project"
+arch=('x86_64')
+url="https://github.com/foresterre/cargo-msrv"
+license=('MIT' 'Apache')
+depends=('gcc-libs' 'openssl')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('97ca8350ad703df1745aa51209e9c9dfced65c00db2f8a3ef9edbbcf89dd6f80')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen
+}
+
+# tests are using rustup
+#check() {
+#  cd "$pkgname-$pkgver"
+#  cargo test --release --locked --all -- --test-threads=1
+#}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list