[arch-commits] Commit in cargo-zigbuild/repos (2 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Wed Feb 23 10:07:46 UTC 2022


    Date: Wednesday, February 23, 2022 @ 10:07:46
  Author: orhun
Revision: 1136263

archrelease: copy trunk to community-x86_64

Added:
  cargo-zigbuild/repos/community-x86_64/
  cargo-zigbuild/repos/community-x86_64/PKGBUILD
    (from rev 1136262, cargo-zigbuild/trunk/PKGBUILD)

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

Copied: cargo-zigbuild/repos/community-x86_64/PKGBUILD (from rev 1136262, cargo-zigbuild/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-02-23 10:07:46 UTC (rev 1136263)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
+
+pkgname=cargo-zigbuild
+pkgver=0.5.3
+pkgrel=2
+pkgdesc="Compile Cargo project with zig as linker"
+arch=('x86_64')
+url="https://github.com/messense/cargo-zigbuild"
+license=('MIT')
+depends=('gcc-libs' 'zig')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('eaca923e917f3f369d551446d565f75cfa784b48ef03bf42a385fd371bd0cbaf')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen
+}
+
+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 -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list