Skip to content

Commit 3c34e30

Browse files
XdaviusVotre NomV.pre-commit-ci[bot]Elsie19
authored
add: cbindgen (#6757)
Co-authored-by: Votre Nom <Vous@exemple.com> Co-authored-by: V. <150687949+vigress8@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Elsie <hwengerstickel@protonmail.com> Co-authored-by: xdavius <xdavius@github.com>
1 parent 9dae1f7 commit 3c34e30

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

packagelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ btrfs-du-bin
5353
cachyos-ananicy-rules-git
5454
cantata
5555
caprine-deb
56+
cbindgen
5657
celeste-bin
5758
cheat
5859
chezmoi-deb

packages/cbindgen/.SRCINFO

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pkgbase = cbindgen
2+
pkgver = 0.27.0
3+
pkgdesc = A tool for generating C bindings to Rust code
4+
url = https://github.com/mozilla/cbindgen
5+
arch = amd64
6+
arch = arm64
7+
depends = libglib2.0-dev
8+
makedepends = libglib2.0-dev
9+
makedepends = git
10+
pacdeps = rust-bin
11+
license = MPL-2.0
12+
maintainer = xdavius <xdavius@github.com>
13+
repology = project: cbindgen
14+
source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0
15+
b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5
16+
17+
pkgname = cbindgen
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
pkgname="cbindgen"
2+
pkgver="0.27.0"
3+
pkgdesc="A tool for generating C bindings to Rust code"
4+
url='https://github.com/mozilla/cbindgen'
5+
repology=("project: ${pkgname}")
6+
maintainer=("xdavius <xdavius@github.com>")
7+
arch=("amd64" "arm64")
8+
license=("MPL-2.0")
9+
depends=("libglib2.0-dev")
10+
makedepends=("libglib2.0-dev" "git")
11+
pacdeps=("rust-bin")
12+
source=("git+https://github.com/mozilla/cbindgen#tag=v${pkgver}")
13+
b2sums=('76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5')
14+
external_connection="true"
15+
16+
prepare() {
17+
cd cbindgen
18+
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
19+
}
20+
21+
build() {
22+
cd cbindgen
23+
24+
CARGO_PROFILE_RELEASE_DEBUG=2 \
25+
CARGO_PROFILE_RELEASE_LTO=true \
26+
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 \
27+
cargo build --release
28+
}
29+
30+
package() {
31+
cd cbindgen
32+
install -Dt "${pkgdir}/usr/bin" target/release/cbindgen
33+
install -Dt "${pkgdir}/usr/share/doc/${pkgname}" -m644 CHANGES \
34+
{README,docs,internals}.md
35+
}

srclist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,24 @@ pkgbase = caprine-deb
11891189

11901190
pkgname = caprine-deb
11911191
---
1192+
pkgbase = cbindgen
1193+
pkgver = 0.27.0
1194+
pkgdesc = A tool for generating C bindings to Rust code
1195+
url = https://github.com/mozilla/cbindgen
1196+
arch = amd64
1197+
arch = arm64
1198+
depends = libglib2.0-dev
1199+
makedepends = libglib2.0-dev
1200+
makedepends = git
1201+
pacdeps = rust-bin
1202+
license = MPL-2.0
1203+
maintainer = xdavius <xdavius@github.com>
1204+
repology = project: cbindgen
1205+
source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0
1206+
b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5
1207+
1208+
pkgname = cbindgen
1209+
---
11921210
pkgbase = celeste-bin
11931211
gives = celeste
11941212
pkgver = 0.8.0

0 commit comments

Comments
 (0)