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

Orhun Parmaksiz orhun at gemini.archlinux.org
Sun Jul 25 18:42:12 UTC 2021


    Date: Sunday, July 25, 2021 @ 18:42:12
  Author: orhun
Revision: 984990

archrelease: copy trunk to community-x86_64

Added:
  cargo-expand/repos/community-x86_64/
  cargo-expand/repos/community-x86_64/PKGBUILD
    (from rev 984989, cargo-expand/trunk/PKGBUILD)

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

Copied: cargo-expand/repos/community-x86_64/PKGBUILD (from rev 984989, cargo-expand/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-07-25 18:42:12 UTC (rev 984990)
@@ -0,0 +1,35 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Philipp A. <flying-sheep at web.de>
+# Contributor: Jian Zeng <anonymousknight96 AT gmail.com>
+
+pkgname=cargo-expand
+pkgver=1.0.7
+pkgrel=1
+pkgdesc="Subcommand to show result of macro expansion"
+arch=('x86_64')
+url='https://github.com/dtolnay/cargo-expand'
+license=('MIT' 'Apache')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('3064013b322dab644126ac82fa8e541148016f0a25a531c540cc2e2390aa3b68')
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --locked
+}
+
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --release --locked
+}
+
+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