[arch-commits] Commit in cargo-c/trunk (PKGBUILD)

Daniel Bermond dbermond at archlinux.org
Tue Apr 21 23:08:09 UTC 2020


    Date: Tuesday, April 21, 2020 @ 23:08:09
  Author: dbermond
Revision: 617407

upgpkg: cargo-c 0.6.3-1

Modified:
  cargo-c/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-21 23:06:35 UTC (rev 617406)
+++ PKGBUILD	2020-04-21 23:08:09 UTC (rev 617407)
@@ -1,7 +1,7 @@
 # Maintainer: Daniel Bermond <dbermond at archlinux.org>
 
 pkgname=cargo-c
-pkgver=0.6.2
+pkgver=0.6.3
 pkgrel=1
 pkgdesc='A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries'
 arch=('x86_64')
@@ -9,13 +9,14 @@
 license=('MIT')
 depends=('curl' 'openssl' 'zlib')
 makedepends=('rust')
-source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/lu-zero/cargo-c/archive/v${pkgver}.tar.gz")
-sha256sums=('c0a3e612b41f441081098e3f3e1716fc709421f3d17654a9f0303f420fdbc1ee')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/lu-zero/cargo-c/archive/v${pkgver}.tar.gz"
+        "${pkgname}-${pkgver}.Cargo.lock"::"https://github.com/lu-zero/cargo-c/releases/download/v${pkgver}/Cargo.lock")
+sha256sums=('f5b767b9f4dabcccb3602c07d1288c4636f2a3acd1acef3041e2a6e594355091'
+            '159c040a95a11d02a200c505a10fd329cebb130217ffabedbfc1f166904cfa40')
 
 prepare() {
-    # https://github.com/lu-zero/cargo-c/issues/44
-    # cannot use the '--locked' option as upstream does not provide 'Cargo.lock' (no reproducible builds support)
-    cargo fetch --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
+    ln -sf "../${pkgname}-${pkgver}.Cargo.lock" "${pkgname}-${pkgver}/Cargo.lock"
+    cargo fetch --locked --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
 }
 
 build() {



More information about the arch-commits mailing list