summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzorz <zorz@krypt.sh>2026-04-01 18:48:25 +0300
committerzorz <zorz@krypt.sh>2026-04-01 18:48:25 +0300
commitce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e (patch)
treecd063adb15fb9f360555cf1812c361af2b5590af
parent59683981c6945b0e02ac6411b16d625be8a9baae (diff)
downloadzorz-ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e.tar.gz
zorz-ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e.tar.xz
obsolete: makedep of librsvg
-rw-r--r--cargo-c/.footprint6
-rw-r--r--cargo-c/.signature6
-rw-r--r--cargo-c/MAKEPKG47
3 files changed, 59 insertions, 0 deletions
diff --git a/cargo-c/.footprint b/cargo-c/.footprint
new file mode 100644
index 0000000..d9f7d39
--- /dev/null
+++ b/cargo-c/.footprint
@@ -0,0 +1,6 @@
1drwxr-xr-x root/root usr/
2drwxr-xr-x root/root usr/bin/
3-rwxr-xr-x root/root usr/bin/cargo-capi
4-rwxr-xr-x root/root usr/bin/cargo-cbuild
5-rwxr-xr-x root/root usr/bin/cargo-cinstall
6-rwxr-xr-x root/root usr/bin/cargo-ctest
diff --git a/cargo-c/.signature b/cargo-c/.signature
new file mode 100644
index 0000000..1293a48
--- /dev/null
+++ b/cargo-c/.signature
@@ -0,0 +1,6 @@
1untrusted comment: verify with zorz.pub
2RWTZ9IduCSQ/mJdF38yDUSuB5mfqXy7qGRatt5WXTxJp2lnKNq7SoI8GEKnB5Fqm3g5xcNQ7Jd8/ViNK3V4j0wzN8sisdmXrJQo=
3
4SHA256 (MAKEPKG) = 025bb4f73c88ee19e8be5b643e6665b37e8837c23c199bdfcf5d997a3bcb8e2c
5SHA256 (.footprint) = 120f05ca57fb0dbc82b26d55fe14f3719e1bf43681a430bb813e7310a9a6a1e0
6SHA256 (cargo-c-0.10.21.tar.gz) = 819b62a61e5271924dffd122b7c713e446e5d65f3e630bbe9b90d4d46513d8fa
diff --git a/cargo-c/MAKEPKG b/cargo-c/MAKEPKG
new file mode 100644
index 0000000..ee33539
--- /dev/null
+++ b/cargo-c/MAKEPKG
@@ -0,0 +1,47 @@
1#!/bin/mkpkg
2# description: Cargo helper to build and install C-ABI compatible libraries
3# url: https://github.com/lu-zero/cargo-c
4
5name=cargo-c
6version=0.10.21
7release=1
8depends=(rust)
9makedepends=(cargo-audit)
10source=(https://github.com/lu-zero/$name/archive/refs/tags/v$version.tar.gz)
11renames=($name-$version.tar.gz)
12sha256sums=(
13 "819b62a61e5271924dffd122b7c713e446e5d65f3e630bbe9b90d4d46513d8fa"
14)
15
16patch() {
17 cd $name-$version
18 cargo vendor ../vendor
19 mkdir -p .cargo
20 printf '%s\n' \
21 '[source.crates-io]' \
22 'replace-with = "vendored-sources"' \
23 '' \
24 '[source.vendored-sources]' \
25 'directory = "../vendor"' \
26 > .cargo/config.toml
27 cargo audit
28}
29
30build() {
31 export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem
32 export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C target-feature=-crt-static"
33 cd $name-$version
34 cargo build --release --offline
35 install -Dm755 target/release/cargo-capi $PKG/usr/bin/cargo-capi
36 install -Dm755 target/release/cargo-cbuild $PKG/usr/bin/cargo-cbuild
37 install -Dm755 target/release/cargo-cinstall $PKG/usr/bin/cargo-cinstall
38 install -Dm755 target/release/cargo-ctest $PKG/usr/bin/cargo-ctest
39}
40
41signify() {
42 untrusted comment: public key
43 RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
44}
45
46# vim: filetype=sh
47