[arch-commits] Commit in cargo-c/repos/community-x86_64 (PKGBUILD PKGBUILD)
Daniel Bermond
dbermond at archlinux.org
Tue Apr 21 23:08:34 UTC 2020
Date: Tuesday, April 21, 2020 @ 23:08:33
Author: dbermond
Revision: 617408
archrelease: copy trunk to community-x86_64
Added:
cargo-c/repos/community-x86_64/PKGBUILD
(from rev 617407, cargo-c/trunk/PKGBUILD)
Deleted:
cargo-c/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 65 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 33 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-21 23:08:09 UTC (rev 617407)
+++ PKGBUILD 2020-04-21 23:08:33 UTC (rev 617408)
@@ -1,32 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-pkgname=cargo-c
-pkgver=0.6.2
-pkgrel=1
-pkgdesc='A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries'
-arch=('x86_64')
-url='https://github.com/lu-zero/cargo-c/'
-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')
-
-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"
-}
-
-build() {
- cargo build --release --frozen --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
-}
-
-check() {
- cargo test --release --frozen --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
-}
-
-package() {
- install -D -m755 "${pkgname}-${pkgver}/target/release/"cargo-c{build,install} -t "${pkgdir}/usr/bin"
- install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: cargo-c/repos/community-x86_64/PKGBUILD (from rev 617407, cargo-c/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-21 23:08:33 UTC (rev 617408)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=cargo-c
+pkgver=0.6.3
+pkgrel=1
+pkgdesc='A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries'
+arch=('x86_64')
+url='https://github.com/lu-zero/cargo-c/'
+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"
+ "${pkgname}-${pkgver}.Cargo.lock"::"https://github.com/lu-zero/cargo-c/releases/download/v${pkgver}/Cargo.lock")
+sha256sums=('f5b767b9f4dabcccb3602c07d1288c4636f2a3acd1acef3041e2a6e594355091'
+ '159c040a95a11d02a200c505a10fd329cebb130217ffabedbfc1f166904cfa40')
+
+prepare() {
+ ln -sf "../${pkgname}-${pkgver}.Cargo.lock" "${pkgname}-${pkgver}/Cargo.lock"
+ cargo fetch --locked --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
+}
+
+build() {
+ cargo build --release --frozen --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
+}
+
+check() {
+ cargo test --release --frozen --manifest-path="${pkgname}-${pkgver}/Cargo.toml"
+}
+
+package() {
+ install -D -m755 "${pkgname}-${pkgver}/target/release/"cargo-c{build,install} -t "${pkgdir}/usr/bin"
+ install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list