From a5735a699fe922de02c9ebbd491dda1af5090c63 Mon Sep 17 00:00:00 2001 From: Votre Nom Date: Fri, 13 Dec 2024 17:20:59 +0100 Subject: [PATCH 01/11] add(cbindgen) --- packagelist | 1 + packages/cbindgen/.SRCINFO | 17 +++++++++++ packages/cbindgen/cbindgen.pacscript | 43 ++++++++++++++++++++++++++++ srclist | 18 ++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 packages/cbindgen/.SRCINFO create mode 100644 packages/cbindgen/cbindgen.pacscript diff --git a/packagelist b/packagelist index 8bc1e46025..2763b0d5d1 100644 --- a/packagelist +++ b/packagelist @@ -53,6 +53,7 @@ btrfs-du-bin cachyos-ananicy-rules-git cantata caprine-deb +cbindgen celeste-bin cheat chezmoi-deb diff --git a/packages/cbindgen/.SRCINFO b/packages/cbindgen/.SRCINFO new file mode 100644 index 0000000000..98a11cc1ea --- /dev/null +++ b/packages/cbindgen/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = cbindgen + gives = cbindgen + pkgver = 0.27.0 + pkgrel = 1 + 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 + source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0 + b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5 + +pkgname = cbindgen diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript new file mode 100644 index 0000000000..fc9a15f462 --- /dev/null +++ b/packages/cbindgen/cbindgen.pacscript @@ -0,0 +1,43 @@ +pkgname=cbindgen +gives=cbindgen +pkgver=0.27.0 +pkgrel=1 +pkgdesc="A tool for generating C bindings to Rust code" +url="https://github.com/mozilla/cbindgen" +arch=("amd64" "arm64") +license=(MPL-2.0) +depends=( + libglib2.0-dev +) +makedepends=( + libglib2.0-dev + git +) +pacdeps=("rust-bin") +source=("git+${url}#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 + + # 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 +} + +package() { + cd cbindgen + install -Dt "${pkgdir}/usr/bin" target/release/cbindgen + install -Dt "${pkgdir}/usr/share/doc/${pkgname}" -m644 CHANGES \ + {README,docs,internals}.md +} diff --git a/srclist b/srclist index 475d13db9b..9e196c1656 100644 --- a/srclist +++ b/srclist @@ -1189,6 +1189,24 @@ pkgbase = caprine-deb pkgname = caprine-deb --- +pkgbase = cbindgen + gives = cbindgen + pkgver = 0.27.0 + pkgrel = 1 + 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 + source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0 + b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5 + +pkgname = cbindgen +--- pkgbase = celeste-bin gives = celeste pkgver = 0.8.0 From f03392ff920f8d03022eaa5b10496a6882f40869 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:29:29 +0100 Subject: [PATCH 02/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: V. <150687949+vigress8@users.noreply.github.com> --- packages/cbindgen/cbindgen.pacscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index fc9a15f462..dce9328971 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -4,6 +4,8 @@ pkgver=0.27.0 pkgrel=1 pkgdesc="A tool for generating C bindings to Rust code" url="https://github.com/mozilla/cbindgen" +repology=("project: ${gives}") +maintainer=("xdavius ") arch=("amd64" "arm64") license=(MPL-2.0) depends=( From 9a1c6b15ec051ea492d2104f6ae8cf8f5523bdc9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:32:17 +0000 Subject: [PATCH 03/11] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/cbindgen/.SRCINFO | 2 ++ srclist | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/cbindgen/.SRCINFO b/packages/cbindgen/.SRCINFO index 98a11cc1ea..4bb2dda1df 100644 --- a/packages/cbindgen/.SRCINFO +++ b/packages/cbindgen/.SRCINFO @@ -11,6 +11,8 @@ pkgbase = cbindgen makedepends = git pacdeps = rust-bin license = MPL-2.0 + maintainer = xdavius + repology = project: cbindgen source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0 b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5 diff --git a/srclist b/srclist index 9e196c1656..2cf41f7b7f 100644 --- a/srclist +++ b/srclist @@ -1202,6 +1202,8 @@ pkgbase = cbindgen makedepends = git pacdeps = rust-bin license = MPL-2.0 + maintainer = xdavius + repology = project: cbindgen source = git+https://github.com/mozilla/cbindgen#tag=v0.27.0 b2sums = 76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5 From 7e69d685d4ef8cb7b950c2fcfd0a7bf0b71609be Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:22:22 +0100 Subject: [PATCH 04/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index dce9328971..f6c5f8ecce 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -3,7 +3,7 @@ gives=cbindgen pkgver=0.27.0 pkgrel=1 pkgdesc="A tool for generating C bindings to Rust code" -url="https://github.com/mozilla/cbindgen" +url='https://github.com/mozilla/cbindgen' repology=("project: ${gives}") maintainer=("xdavius ") arch=("amd64" "arm64") From aa503ac49efdc9dc4df7ea881bef7a8a1b019e37 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:22:30 +0100 Subject: [PATCH 05/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index f6c5f8ecce..501e021691 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -7,7 +7,7 @@ url='https://github.com/mozilla/cbindgen' repology=("project: ${gives}") maintainer=("xdavius ") arch=("amd64" "arm64") -license=(MPL-2.0) +license=("MPL-2.0") depends=( libglib2.0-dev ) From d19f70338e288db6e05526f8e552f86675fdaf26 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:22:43 +0100 Subject: [PATCH 06/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index 501e021691..d2ecb22879 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -8,13 +8,8 @@ repology=("project: ${gives}") maintainer=("xdavius ") arch=("amd64" "arm64") license=("MPL-2.0") -depends=( - libglib2.0-dev -) -makedepends=( - libglib2.0-dev - git -) +depends=("libglib2.0-dev") +makedepends=("libglib2.0-dev" "git") pacdeps=("rust-bin") source=("git+${url}#tag=v${pkgver}") b2sums=('76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5') From 16a8894b5bc51ef8c8a09e6279273c918ec33a97 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:23:54 +0100 Subject: [PATCH 07/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index d2ecb22879..760e23b342 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -23,13 +23,10 @@ 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 + CARGO_PROFILE_RELEASE_DEBUG=2 \ + CARGO_PROFILE_RELEASE_LTO=true \ + CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 \ + cargo build --release } package() { From 95218bb2cbbcdfcad7dd7a991da7871eb57ee4c7 Mon Sep 17 00:00:00 2001 From: xdavius Date: Wed, 18 Dec 2024 23:44:42 +0100 Subject: [PATCH 08/11] fix review --- packages/cbindgen/.SRCINFO | 1 - packages/cbindgen/cbindgen.pacscript | 3 +-- srclist | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cbindgen/.SRCINFO b/packages/cbindgen/.SRCINFO index 4bb2dda1df..bcc9fdfc9d 100644 --- a/packages/cbindgen/.SRCINFO +++ b/packages/cbindgen/.SRCINFO @@ -1,7 +1,6 @@ pkgbase = cbindgen gives = cbindgen pkgver = 0.27.0 - pkgrel = 1 pkgdesc = A tool for generating C bindings to Rust code url = https://github.com/mozilla/cbindgen arch = amd64 diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index 760e23b342..94f25ba735 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -1,7 +1,6 @@ pkgname=cbindgen gives=cbindgen pkgver=0.27.0 -pkgrel=1 pkgdesc="A tool for generating C bindings to Rust code" url='https://github.com/mozilla/cbindgen' repology=("project: ${gives}") @@ -11,7 +10,7 @@ license=("MPL-2.0") depends=("libglib2.0-dev") makedepends=("libglib2.0-dev" "git") pacdeps=("rust-bin") -source=("git+${url}#tag=v${pkgver}") +source=("git+https://github.com/mozilla/cbindgen#tag=v${pkgver}") b2sums=('76b445f7f9729107a04451433d047f50b5ac52c7dc501685f00d0558dab82e2bc09d23a8b5c33ea231e1a2fae81533ba8e64d21a43d524b6dd0de170114c6ea5') external_connection="true" diff --git a/srclist b/srclist index f8d3e9b773..b170e048ff 100644 --- a/srclist +++ b/srclist @@ -1192,7 +1192,6 @@ pkgname = caprine-deb pkgbase = cbindgen gives = cbindgen pkgver = 0.27.0 - pkgrel = 1 pkgdesc = A tool for generating C bindings to Rust code url = https://github.com/mozilla/cbindgen arch = amd64 From 3373c8a8631efab52ea83980a286856ab3d2142a Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:59:59 +0100 Subject: [PATCH 09/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index 94f25ba735..01461ca930 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -1,6 +1,5 @@ -pkgname=cbindgen -gives=cbindgen -pkgver=0.27.0 +pkgname="cbindgen" +pkgver="0.27.0" pkgdesc="A tool for generating C bindings to Rust code" url='https://github.com/mozilla/cbindgen' repology=("project: ${gives}") From 664617bc09505307da8cf785987e1b75c46b17a9 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Sun, 22 Dec 2024 14:00:09 +0100 Subject: [PATCH 10/11] Update packages/cbindgen/cbindgen.pacscript Co-authored-by: Elsie --- packages/cbindgen/cbindgen.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cbindgen/cbindgen.pacscript b/packages/cbindgen/cbindgen.pacscript index 01461ca930..723ee1c6a9 100644 --- a/packages/cbindgen/cbindgen.pacscript +++ b/packages/cbindgen/cbindgen.pacscript @@ -2,7 +2,7 @@ pkgname="cbindgen" pkgver="0.27.0" pkgdesc="A tool for generating C bindings to Rust code" url='https://github.com/mozilla/cbindgen' -repology=("project: ${gives}") +repology=("project: ${pkgname}") maintainer=("xdavius ") arch=("amd64" "arm64") license=("MPL-2.0") From 91f81bcec17f9c5b5cb10b6be9662275b5be1621 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:02:46 +0000 Subject: [PATCH 11/11] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/cbindgen/.SRCINFO | 1 - srclist | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/cbindgen/.SRCINFO b/packages/cbindgen/.SRCINFO index bcc9fdfc9d..46fc4f56e8 100644 --- a/packages/cbindgen/.SRCINFO +++ b/packages/cbindgen/.SRCINFO @@ -1,5 +1,4 @@ pkgbase = cbindgen - gives = cbindgen pkgver = 0.27.0 pkgdesc = A tool for generating C bindings to Rust code url = https://github.com/mozilla/cbindgen diff --git a/srclist b/srclist index b170e048ff..e33590339b 100644 --- a/srclist +++ b/srclist @@ -1190,7 +1190,6 @@ pkgbase = caprine-deb pkgname = caprine-deb --- pkgbase = cbindgen - gives = cbindgen pkgver = 0.27.0 pkgdesc = A tool for generating C bindings to Rust code url = https://github.com/mozilla/cbindgen