Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / cbindgen
Commits: 0448e2ab by Jan Alexander Steffens (heftig) at 2024-04-26T18:51:23+02:00 Don't test in release mode - - - - - b53dd1dd by Jan Alexander Steffens (heftig) at 2024-04-26T18:51:33+02:00 Use tag pinning - - - - - d556bc4f by Jan Alexander Steffens (heftig) at 2024-04-26T18:52:44+02:00 Fix namcap issues - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,18 @@ +pkgbase = cbindgen + pkgdesc = A tool for generating C bindings to Rust code + pkgver = 0.26.0 + pkgrel = 1 + url = https://github.com/eqrion/cbindgen + arch = x86_64 + license = MPL-2.0 + checkdepends = cmake + checkdepends = cython0 + checkdepends = python + makedepends = cargo + makedepends = git + depends = gcc-libs + depends = glibc + source = git+https://github.com/eqrion/cbindgen#tag=v0.26.0 + b2sums = 36ca6db054b7aae73696b7dec2690be047e1dfb1d1fcea14ccbed5de6fd6f4761265c129c7cbea304e3a3b64234545c8e16ea4b9fec3f291a1a47de71824795e + +pkgname = cbindgen ===================================== PKGBUILD ===================================== @@ -6,8 +6,11 @@ pkgrel=1 pkgdesc="A tool for generating C bindings to Rust code" url="https://github.com/eqrion/cbindgen" arch=(x86_64) -license=(MPL2) -depends=(gcc-libs) +license=(MPL-2.0) +depends=( + gcc-libs + glibc +) makedepends=( cargo git @@ -17,20 +20,8 @@ checkdepends=( cython0 python ) -_commit=703b53c06f9fe2dbc0193d67626558cfa84a0f62 # tags/0.26.0 -source=("git+$url#commit=$_commit") -b2sums=('SKIP') - -# Use LTO -export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 - -# Use debug -export CARGO_PROFILE_RELEASE_DEBUG=2 - -pkgver() { - cd cbindgen - git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g' -} +source=("git+$url#tag=v$pkgver") +b2sums=('36ca6db054b7aae73696b7dec2690be047e1dfb1d1fcea14ccbed5de6fd6f4761265c129c7cbea304e3a3b64234545c8e16ea4b9fec3f291a1a47de71824795e') prepare() { cd cbindgen @@ -39,13 +30,20 @@ prepare() { build() { cd cbindgen + + # Use debug + export CARGO_PROFILE_RELEASE_DEBUG=2 + + # Use LTO + export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 + cargo build --release --frozen --all-targets } check() { cd cbindgen # Tests need nightly features - RUSTC_BOOTSTRAP=1 cargo test --release --frozen + RUSTC_BOOTSTRAP=1 cargo test --frozen } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/cbindgen/-/compare/a65b229d2e28291a08b2b13e0262be022bb62ccd...d556bc4fdcedc53dcc9624c9f355a574a7ad7454 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/cbindgen/-/compare/a65b229d2e28291a08b2b13e0262be022bb62ccd...d556bc4fdcedc53dcc9624c9f355a574a7ad7454 You're receiving this email because of your account on gitlab.archlinux.org.