← incus-compose-bin

incus-compose-bin 1.1.0-1

safe

Checked2026-08-02 23:04 UTC
Check provider/modelopenai/gpt-5.6-luna

Commit diff

diff --git a/PKGBUILD b/PKGBUILD
index aec5ca8..862da08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
 # Maintainer: Bastien 'neitsab' Traverse <[email protected]>
 
 pkgname=incus-compose-bin
-pkgver=1.0.0
-pkgrel=2
+pkgver=1.1.0
+pkgrel=1
 pkgdesc="Bring the familiar Docker Compose workflow to Incus containers (prebuilt binary)"
 arch=('x86_64' 'aarch64')
 url="https://github.com/lxc/incus-compose"
@@ -17,10 +17,10 @@ provides=('incus-compose')
 conflicts=('incus-compose' 'incus-compose-git')
 
 source_x86_64=("https://github.com/lxc/incus-compose/releases/download/v$pkgver/incus-compose_${pkgver}_linux_amd64.tar.gz")
-sha256sums_x86_64=('c62bea55fda677b70fcfac1ad6f57bf6c47287e3ae6f99fe9de25a0fcf98484c')
+sha256sums_x86_64=('7be727d246fb74951b8990d07836022db591ee0cd048b38f195bd3e94dc19fbb')
 
 source_aarch64=("https://github.com/lxc/incus-compose/releases/download/v$pkgver/incus-compose_${pkgver}_linux_arm64.tar.gz")
-sha256sums_aarch64=('f8194dbd1a24ecc477ba80a65a5e5584154bab42ea921ebfa2aea61e8f3d8998')
+sha256sums_aarch64=('83a28394c06481c88f599e5ced523dc9e36de9e93a54052e9d5ac51057c80b6c')
 
 package() {
   install -Dm755 "$srcdir/incus-compose" "$pkgdir/usr/bin/incus-compose"
diff --git a/.SRCINFO b/.SRCINFO
index 604434c..c31ba50 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = incus-compose-bin
 	pkgdesc = Bring the familiar Docker Compose workflow to Incus containers (prebuilt binary)
-	pkgver = 1.0.0
-	pkgrel = 2
+	pkgver = 1.1.0
+	pkgrel = 1
 	url = https://github.com/lxc/incus-compose
 	arch = x86_64
 	arch = aarch64
@@ -12,9 +12,9 @@ pkgbase = incus-compose-bin
 	provides = incus-compose
 	conflicts = incus-compose
 	conflicts = incus-compose-git
-	source_x86_64 = https://github.com/lxc/incus-compose/releases/download/v1.0.0/incus-compose_1.0.0_linux_amd64.tar.gz
-	sha256sums_x86_64 = c62bea55fda677b70fcfac1ad6f57bf6c47287e3ae6f99fe9de25a0fcf98484c
-	source_aarch64 = https://github.com/lxc/incus-compose/releases/download/v1.0.0/incus-compose_1.0.0_linux_arm64.tar.gz
-	sha256sums_aarch64 = f8194dbd1a24ecc477ba80a65a5e5584154bab42ea921ebfa2aea61e8f3d8998
+	source_x86_64 = https://github.com/lxc/incus-compose/releases/download/v1.1.0/incus-compose_1.1.0_linux_amd64.tar.gz
+	sha256sums_x86_64 = 7be727d246fb74951b8990d07836022db591ee0cd048b38f195bd3e94dc19fbb
+	source_aarch64 = https://github.com/lxc/incus-compose/releases/download/v1.1.0/incus-compose_1.1.0_linux_arm64.tar.gz
+	sha256sums_aarch64 = 83a28394c06481c88f599e5ced523dc9e36de9e93a54052e9d5ac51057c80b6c
 
 pkgname = incus-compose-bin
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..9cb97c0
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+# Bumps pkgver in PKGBUILD and refreshes sha256sums, then regenerates .SRCINFO.
+# Usage: ./update.sh <new-version>   e.g. ./update.sh 1.1.0
+set -euo pipefail
+
+if [[ $# -ne 1 ]]; then
+  echo "Usage: $0 <new-version>" >&2
+  exit 1
+fi
+
+newver="$1"
+dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+pkgbuild="$dir/PKGBUILD"
+
+oldver="$(awk -F= '/^pkgver=/{print $2}' "$pkgbuild")"
+echo "Updating pkgver: $oldver -> $newver"
+sed -i "s/^pkgver=.*/pkgver=$newver/" "$pkgbuild"
+sed -i "s/^pkgrel=.*/pkgrel=1/" "$pkgbuild"
+
+sha256_of() {
+  local url="$1"
+  curl -fsSL "$url" | sha256sum | awk '{print $1}'
+}
+
+echo "Fetching new checksums..."
+
+amd64_sum="$(sha256_of "https://github.com/lxc/incus-compose/releases/download/v$newver/incus-compose_${newver}_linux_amd64.tar.gz")"
+arm64_sum="$(sha256_of "https://github.com/lxc/incus-compose/releases/download/v$newver/incus-compose_${newver}_linux_arm64.tar.gz")"
+
+sed -i "s/^sha256sums_x86_64=('[^']*')/sha256sums_x86_64=('$amd64_sum')/" "$pkgbuild"
+sed -i "s/^sha256sums_aarch64=('[^']*')/sha256sums_aarch64=('$arm64_sum')/" "$pkgbuild"
+
+echo "Regenerating .SRCINFO..."
+(cd "$dir" && makepkg --printsrcinfo > .SRCINFO)
+
+echo "Done. New PKGBUILD:"
+cat "$pkgbuild"