From 91da237bb8b0392eee53e3f02c9cafc4d1eeb962 Mon Sep 17 00:00:00 2001
From: envolution <involution@gmail.com>
Date: Thu, 7 Nov 2024 01:18:33 +0000
Subject: [PATCH] Auto update scilab-bin : 2025.0.0

---
 .SRCINFO        | 2 +-
 .nvchecker.toml | 4 ++++
 PKGBUILD        | 4 ++--
 3 files changed, 7 insertions(+), 3 deletions(-)
 create mode 100644 .nvchecker.toml

diff --git a/.SRCINFO b/.SRCINFO
index d6629fa..839e09b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = scilab-bin
 	pkgdesc = A software package for numerical computation, providing a powerful computing environment for engineering and scientific applications.
 	pkgver = 2025.0.0
-	pkgrel = 1
+	pkgrel = 2
 	url = https://www.scilab.org
 	arch = x86_64
 	license = GPL
diff --git a/.nvchecker.toml b/.nvchecker.toml
new file mode 100644
index 0000000..c4f5f6e
--- /dev/null
+++ b/.nvchecker.toml
@@ -0,0 +1,4 @@
+[scilab-bin]
+source="regex"
+regex="scilab-([0-9.]*).bin.x86_64-linux-gnu.tar"
+url="https://www.scilab.org/latest"
diff --git a/PKGBUILD b/PKGBUILD
index bfaa942..134eeda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
 pkgname=scilab-bin
 _pkgname=${pkgname%-bin}
 pkgver=2025.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A software package for numerical computation, providing a powerful computing environment for engineering and scientific applications."
 arch=("x86_64")
 license=("GPL")
@@ -18,7 +18,7 @@ conflicts=('scilab' 'scilab-git')
 provides=('scilab')
 options=(!strip)
 # From Scilab downloads page (https://www.scilab.org/download/)
-source=("https://www.scilab.org/download/${pkgver}/${_pkgname}-${pkgver}.bin.x86_64-linux-gnu.tar.xz")
+source=("https://www.scilab.org/download/${pkgver}/${_pkgname}-${pkgver}.bin.${CARCH}-linux-gnu.tar.xz")
 sha256sums=('f74e47a63a4d5a7ba927bfdf9745e3ede3c3a5e3158b4d8e9c4c8879ac0d771c')
 
 package() {