David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
cargo-cyclonedx


Commits:
33939b23 by David Runge at 2024-01-06T12:33:58+01:00
Switch to correct SPDX license identifier for project

Signed-off-by: David Runge <[email protected]>

- - - - -
8c6ad773 by David Runge at 2024-01-06T12:38:00+01:00
Simplify source by reusing url

Signed-off-by: David Runge <[email protected]>

- - - - -
d523522a by David Runge at 2024-01-06T12:40:43+01:00
Simplify accessing dir by abstracting upstream name with variable

Signed-off-by: David Runge <[email protected]>

- - - - -
f9c59a36 by David Runge at 2024-01-06T12:41:10+01:00
Add cargo to depends, as this is a subcommand of cargo

Signed-off-by: David Runge <[email protected]>

- - - - -
0c0589ad by David Runge at 2024-01-06T12:51:58+01:00
upgpkg: 0.4.1-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,16 @@
+pkgbase = cargo-cyclonedx
+       pkgdesc = Creates CycloneDX Software Bill of Materials (SBOM) from Rust 
(Cargo) projects
+       pkgver = 0.4.1
+       pkgrel = 1
+       url = https://github.com/CycloneDX/cyclonedx-rust-cargo
+       arch = x86_64
+       license = Apache-2.0
+       makedepends = rust
+       depends = cargo
+       depends = gcc-libs
+       depends = glibc
+       source = 
cargo-cyclonedx-0.4.1.tar.gz::https://github.com/CycloneDX/cyclonedx-rust-cargo/archive/refs/tags/cargo-cyclonedx-0.4.1.tar.gz
+       sha512sums = 
8bab9031a179bd5d0fbcb9f30013efbd1fc5073bef881a108d0f4b91aab93673e759a5578a367f4ccd056f039f7ead21ecb965561116caf283f26d940b0bb36f
+       b2sums = 
c1907710867b3c1342cc5c9661a095c5c4f62c52a8284eccba8ff71398d933667924df645ba0fa287e947845d8eb8e299c810756a5f94a6dd991733f79dbeb45
+
+pkgname = cargo-cyclonedx


=====================================
PKGBUILD
=====================================
@@ -1,41 +1,38 @@
 # Maintainer: David Runge <[email protected]>
 
+_upstream_name=cyclonedx-rust-cargo
 pkgname=cargo-cyclonedx
-pkgver=0.3.8
-pkgrel=2
+pkgver=0.4.1
+pkgrel=1
 pkgdesc="Creates CycloneDX Software Bill of Materials (SBOM) from Rust (Cargo) 
projects"
 arch=(x86_64)
 url="https://github.com/CycloneDX/cyclonedx-rust-cargo";
-license=(Apache)
+license=(Apache-2.0)
 depends=(
-  curl
+  cargo
   gcc-libs
   glibc
-  openssl
-  zlib
 )
 makedepends=(rust)
-# NOTE: linking issues with libssh2 with LTO
-options=(!lto)
-source=($pkgname-$pkgver.tar.gz::https://github.com/CycloneDX/cyclonedx-rust-cargo/archive/refs/tags/$pkgname-$pkgver.tar.gz)
-sha512sums=('a3bf391bc0d020cbe1cc09425877f995d6c3f80f78eb3bc32351bf8dca7f8505f2d06fcd6ce3f157ad1aebbf4518a857aca49c3c6c43f6a523d34f130592e8cb')
-b2sums=('ab5ed6d25077870f13d1d73fb669838772ee00f702b8a6c7a1ed75272b0074b5be8732175fd61674467cec50692d0a1ffe3442a14cbed1bfc2f88bcc36beda5d')
+source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgname-$pkgver.tar.gz)
+sha512sums=('8bab9031a179bd5d0fbcb9f30013efbd1fc5073bef881a108d0f4b91aab93673e759a5578a367f4ccd056f039f7ead21ecb965561116caf283f26d940b0bb36f')
+b2sums=('c1907710867b3c1342cc5c9661a095c5c4f62c52a8284eccba8ff71398d933667924df645ba0fa287e947845d8eb8e299c810756a5f94a6dd991733f79dbeb45')
 
 prepare() {
-  cd cyclonedx-rust-cargo-$pkgname-$pkgver
+  cd $_upstream_name-$pkgname-$pkgver
   export RUSTUP_TOOLCHAIN=stable
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
 build() {
-  cd cyclonedx-rust-cargo-$pkgname-$pkgver
+  cd $_upstream_name-$pkgname-$pkgver
   export RUSTUP_TOOLCHAIN=stable
   export CARGO_TARGET_DIR=target
   cargo build --frozen --release --all-features
 }
 
 check() {
-  cd cyclonedx-rust-cargo-$pkgname-$pkgver
+  cd $_upstream_name-$pkgname-$pkgver
   export RUSTUP_TOOLCHAIN=stable
   # NOTE: use different target dir to have reproducible executable
   export CARGO_TARGET_DIR=target_test
@@ -43,7 +40,7 @@ check() {
 }
 
 package() {
-  cd cyclonedx-rust-cargo-$pkgname-$pkgver
+  cd $_upstream_name-$pkgname-$pkgver
   install -vDm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
   install -vDm 644 $pkgname/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-cyclonedx/-/compare/957e0b9509e3c1921707cd3d1ef5d348131bf14e...0c0589ad995662190c714b5f3527f1e7877c3f1b

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-cyclonedx/-/compare/957e0b9509e3c1921707cd3d1ef5d348131bf14e...0c0589ad995662190c714b5f3527f1e7877c3f1b
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to