Skip to content

Commit

Permalink
add: cbindgen (#6757)
Browse files Browse the repository at this point in the history
Co-authored-by: Votre Nom <[email protected]>
Co-authored-by: V. <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Elsie <[email protected]>
Co-authored-by: xdavius <[email protected]>
  • Loading branch information
6 people authored Jan 10, 2025
1 parent 9dae1f7 commit 3c34e30
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ btrfs-du-bin
cachyos-ananicy-rules-git
cantata
caprine-deb
cbindgen
celeste-bin
cheat
chezmoi-deb
Expand Down
17 changes: 17 additions & 0 deletions packages/cbindgen/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pkgbase = cbindgen
pkgver = 0.27.0
pkgdesc = A tool for generating C bindings to Rust code
url = https://github.com/mozilla/cbindgen
arch = amd64
arch = arm64
depends = libglib2.0-dev
makedepends = libglib2.0-dev
makedepends = git
pacdeps = rust-bin
license = MPL-2.0
maintainer = xdavius <[email protected]>
repology = project: cbindgen
source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0
b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5

pkgname = cbindgen
35 changes: 35 additions & 0 deletions packages/cbindgen/cbindgen.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pkgname="cbindgen"
pkgver="0.27.0"
pkgdesc="A tool for generating C bindings to Rust code"
url='https://github.com/mozilla/cbindgen'
repology=("project: ${pkgname}")
maintainer=("xdavius <[email protected]>")
arch=("amd64" "arm64")
license=("MPL-2.0")
depends=("libglib2.0-dev")
makedepends=("libglib2.0-dev" "git")
pacdeps=("rust-bin")
source=("git+https://github.com/mozilla/cbindgen#tag=v${pkgver}")
b2sums=('76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5')
external_connection="true"

prepare() {
cd cbindgen
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
cd cbindgen

CARGO_PROFILE_RELEASE_DEBUG=2 \
CARGO_PROFILE_RELEASE_LTO=true \
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 \
cargo build --release
}

package() {
cd cbindgen
install -Dt "${pkgdir}/usr/bin" target/release/cbindgen
install -Dt "${pkgdir}/usr/share/doc/${pkgname}" -m644 CHANGES \
{README,docs,internals}.md
}
18 changes: 18 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,24 @@ pkgbase = caprine-deb

pkgname = caprine-deb
---
pkgbase = cbindgen
pkgver = 0.27.0
pkgdesc = A tool for generating C bindings to Rust code
url = https://github.com/mozilla/cbindgen
arch = amd64
arch = arm64
depends = libglib2.0-dev
makedepends = libglib2.0-dev
makedepends = git
pacdeps = rust-bin
license = MPL-2.0
maintainer = xdavius <[email protected]>
repology = project: cbindgen
source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0
b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5

pkgname = cbindgen
---
pkgbase = celeste-bin
gives = celeste
pkgver = 0.8.0
Expand Down

0 comments on commit 3c34e30

Please sign in to comment.