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

Kpcyrd kpcyrd at archlinux.org
Tue Dec 29 14:12:51 UTC 2020


    Date: Tuesday, December 29, 2020 @ 14:12:50
  Author: kpcyrd
Revision: 797131

archrelease: copy trunk to community-x86_64

Added:
  cross/repos/community-x86_64/
  cross/repos/community-x86_64/PKGBUILD
    (from rev 797130, cross/trunk/PKGBUILD)

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

Copied: cross/repos/community-x86_64/PKGBUILD (from rev 797130, cross/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-12-29 14:12:50 UTC (rev 797131)
@@ -0,0 +1,37 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Maintainer: kpcyrd <git at rxv.cc>
+
+pkgname=cross
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="'Zero setup' cross compilation and 'cross testing' of Rust crates"
+url="https://github.com/rust-embedded/cross"
+arch=('x86_64')
+license=('Apache' 'MIT')
+depends=('gcc-libs')
+makedepends=('rust')
+optdepends=('docker: provide container'
+            'podman: provide container')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rust-embedded/cross/archive/v${pkgver}.tar.gz")
+sha256sums=('150ab0d7cd8f05f3d63df7aa0ea7ef32af6732c89712d671c6be1c40ecab1cdb')
+b2sums=('a8fac885dbd953bcc9d5970483812348fe4ae0a2144d488112663c5c4263bc069bce5195ec8457deb405e42c7d44084b7f6ec3c38886503bfd1b4420b054a578')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cargo build --release --locked
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  cargo test --release --locked
+}
+
+package() {
+  depends+=('rustup')
+  cd ${pkgname}-${pkgver}
+  install -Dm755 "target/release/cross" -t "${pkgdir}/usr/bin"
+  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
+    LICENSE-APACHE LICENSE-MIT
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list