git » autoupdaters.git » commit 51d3ad6

auto-update cbindgen

author Urja (ARMLFS builder)
2026-01-08 23:58:26 UTC
committer Urja (ARMLFS builder)
2026-01-08 23:58:26 UTC
parent db0c72915e2ae0f1642917f644170caa21df84c6

auto-update cbindgen

apparently it's a firefox build dep like nss, so doing the nss treatment to it

cbindgen.py +23 -0
crontab.txt +1 -0

diff --git a/cbindgen.py b/cbindgen.py
new file mode 100755
index 0000000..7346793
--- /dev/null
+++ b/cbindgen.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+from autoupdater_helpers import *
+
+os.chdir("/sources/base-pkgbuilds/cbindgen")
+prev_ver = pkgbuild_ver()
+meta = get_arch_pkgbuild_ver_sum("cbindgen")
+ver = meta['ver']
+
+if ver == prev_ver:
+    print("Update not necessary")
+    sys.exit(0)
+
+pkgbuild_new_ver(**meta)
+
+os.chdir("..")
+
+print(f"Updating {prev_ver} to {ver}")
+mpkg("cbindgen", ver)
+mpkg("cbindgen", ver, carch="aarch64")
+
diff --git a/crontab.txt b/crontab.txt
index 162a9d6..5a47beb 100644
--- a/crontab.txt
+++ b/crontab.txt
@@ -1,5 +1,6 @@
 40   3  * *      * cd /sources/autoupdaters/linux-kbb && ./kbbcron.sh
 28   0 21 1,4-12 * cd /sources/autoupdaters && ./updater-cron.sh kicad
+12   2  8 *      * cd /sources/autoupdaters && ./updater-cron.sh cbindgen
 12   3  8 *      * cd /sources/autoupdaters && ./updater-cron.sh nss
 44   5  8 *      * cd /sources/autoupdaters && ./updater-cron.sh firefox
  7   0  * *      5 cd /sources/autoupdaters && ./updater-cron.sh yt-dlp