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

Orhun Parmaksiz orhun at gemini.archlinux.org
Tue Jan 4 21:39:48 UTC 2022


    Date: Tuesday, January 4, 2022 @ 21:39:48
  Author: orhun
Revision: 1093093

archrelease: copy trunk to community-x86_64

Added:
  cargo-generate/repos/community-x86_64/PKGBUILD
    (from rev 1093091, cargo-generate/trunk/PKGBUILD)
Deleted:
  cargo-generate/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-04 21:39:46 UTC (rev 1093092)
+++ PKGBUILD	2022-01-04 21:39:48 UTC (rev 1093093)
@@ -1,38 +0,0 @@
-# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
-# Contributor: Philipp A. <flying-sheep at web.de>
-
-pkgname=cargo-generate
-pkgver=0.11.1
-pkgrel=1
-pkgdesc="Use pre-existing git repositories as templates"
-arch=('x86_64')
-url="https://github.com/cargo-generate/cargo-generate"
-license=('MIT' 'Apache')
-depends=('curl')
-makedepends=('rust')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('a2a4d1e718163e3c62cba17c374158c4032bf7cc6d40dfc64d415e905f14e6ea')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-  cargo fetch --locked
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  cargo build --release --frozen
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  cargo test --frozen --lib
-}
-
-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: ts=2 sw=2 et:

Copied: cargo-generate/repos/community-x86_64/PKGBUILD (from rev 1093091, cargo-generate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-04 21:39:48 UTC (rev 1093093)
@@ -0,0 +1,41 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Philipp A. <flying-sheep at web.de>
+
+pkgname=cargo-generate
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="Use pre-existing git repositories as templates"
+arch=('x86_64')
+url="https://github.com/cargo-generate/cargo-generate"
+license=('MIT' 'Apache')
+depends=('curl' 'libgit2')
+makedepends=('cargo' 'libssh2')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('04bb55cf94e2cec378e92f44f0bca0941e193c07589aadd0b46f5eb41edf753e')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  export RUSTUP_TOOLCHAIN=stable
+  export LIBSSH2_SYS_USE_PKG_CONFIG=1
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen
+}
+
+check() {
+  export RUSTUP_TOOLCHAIN=stable
+  cd "$pkgname-$pkgver"
+  cargo test --frozen --lib
+}
+
+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: ts=2 sw=2 et:



More information about the arch-commits mailing list