[arch-commits] Commit in (4 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Sun Jul 25 18:41:50 UTC 2021


    Date: Sunday, July 25, 2021 @ 18:41:50
  Author: orhun
Revision: 984989

addpkg: cargo-expand 1.0.7-1

Added:
  cargo-expand/
  cargo-expand/repos/
  cargo-expand/trunk/
  cargo-expand/trunk/PKGBUILD

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

Added: cargo-expand/trunk/PKGBUILD
===================================================================
--- cargo-expand/trunk/PKGBUILD	                        (rev 0)
+++ cargo-expand/trunk/PKGBUILD	2021-07-25 18:41:50 UTC (rev 984989)
@@ -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