Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

add: arch linux pacman build

Noxy8aa810bd72d0
diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml
index 55c1596e..052643d6 100644
--- a/.github/workflows/build-app.yml
+++ b/.github/workflows/build-app.yml
@@ -6,7 +6,7 @@ name: Build app
# target:
#
# macOS arm64 (Apple silicon) x86_64 (Intel) -> Concat-*.dmg
-# Linux x86_64 aarch64 -> Concat-*.deb, .rpm, .AppImage
+# Linux x86_64 aarch64 -> Concat-*.deb, .rpm, .AppImage, .pkg.tar.zst
# Windows x86_64 aarch64 -> Concat-*-setup.exe, .msi
#
# Installers and binaries only: the program is not shipped as an archive
@@ -550,6 +550,45 @@ jobs:
exit 1
fi
+ # Arch Linux package, from the same folder as the .deb and .rpm.
+ # Arch ships x86_64 only, so aarch64 comes from Arch Linux ARM.
+ - name: Package (Arch Linux)
+ if: matrix.platform == 'linux'
+ env:
+ VERSION: ${{ steps.version.outputs.version }}
+ run: |
+ set -euo pipefail
+ name="Concat-${VERSION}-linux-${{ matrix.arch }}"
+ pkgver="${VERSION//-/_}"
+ image=archlinux:base-devel
+ if [ "${{ matrix.arch }}" = aarch64 ]; then
+ image=menci/archlinuxarm:base-devel
+ fi
+
+ work="$PWD/arch"
+ rm -rf "$work"
+ mkdir -p "$work"
+ cp assets/arch/PKGBUILD "$work/PKGBUILD"
+ cp -a "stage/$name" "$work/stage"
+
+ cat > "$work/build.sh" <<'SCRIPT'
+ #!/bin/bash
+ set -euo pipefail
+ owner=$(stat -c '%u:%g' /pkg)
+ useradd -m builder
+ chown -R builder:builder /pkg
+ su builder -c "env CONCAT_VERSION='$CONCAT_VERSION' CONCAT_STAGE=/pkg/stage PKGDEST=/pkg makepkg --noconfirm --nodeps"
+ chown -R "$owner" /pkg
+ SCRIPT
+ chmod 755 "$work/build.sh"
+
+ docker run --rm --env CONCAT_VERSION="$pkgver" \
+ -v "$work:/pkg" -w /pkg "$image" /pkg/build.sh
+
+ mv "$work"/concat-*.pkg.tar.zst "stage/$name.pkg.tar.zst"
+ rm -rf "$work"
+ ls -l stage
+
# The folder three ways. A .deb and an .rpm, from one description in
# assets/linux/nfpm.yaml: the program whole under /opt/concat, a
# launcher on the path, a desktop entry and an icon. And an AppImage:
diff --git a/assets/arch/PKGBUILD b/assets/arch/PKGBUILD
new file mode 100644
index 00000000..16d683a5
--- /dev/null
+++ b/assets/arch/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: noxygalaxy <[email protected]>
+pkgname=concat
+pkgver=${CONCAT_VERSION:?CONCAT_VERSION must be set}
+pkgrel=1
+pkgdesc="Free and open source video editor"
+arch=('x86_64' 'aarch64')
+url="https://github.com/jub0t/Concat"
+license=('AGPL-3.0-or-later')
+depends=('glibc' 'gtk3' 'fontconfig' 'freetype2' 'libxkbcommon' 'mesa' 'alsa-lib')
+options=('!strip' '!debug')
+source=()
+
+stage=${CONCAT_STAGE:?CONCAT_STAGE must point at the staged folder}
+
+package() {
+ install -Dm755 "$stage/concat" "$pkgdir/opt/concat/concat"
+ install -d "$pkgdir/opt/concat/lib"
+ cp -a "$stage"/lib/. "$pkgdir/opt/concat/lib/"
+
+ install -d "$pkgdir/usr/bin"
+ printf '#!/bin/sh\nexec /opt/concat/concat "$@"\n' > "$pkgdir/usr/bin/concat"
+ chmod 755 "$pkgdir/usr/bin/concat"
+ install -Dm644 "$stage/concat.desktop" "$pkgdir/usr/share/applications/concat.desktop"
+ sed -i 's|^Exec=concat|Exec=/opt/concat/concat %U|' "$pkgdir/usr/share/applications/concat.desktop"
+ install -Dm644 "$stage/concat.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/concat.png"
+
+ install -Dm644 "$stage/LICENSE" "$pkgdir/usr/share/licenses/concat/LICENSE"
+ install -Dm644 "$stage/THIRD_PARTY_NOTICES.md" "$pkgdir/usr/share/licenses/concat/THIRD_PARTY_NOTICES.md"
+}
diff --git a/scripts/models.py b/scripts/models.py
index f18b0be5..3fa4bea0 100755
--- a/scripts/models.py
+++ b/scripts/models.py
@@ -49,9 +49,11 @@ BUNDLES = [
("linux", "x86_64", "deb", "Concat-{v}-linux-x86_64.deb"),
("linux", "x86_64", "rpm", "Concat-{v}-linux-x86_64.rpm"),
("linux", "x86_64", "appimage", "Concat-{v}-linux-x86_64.AppImage"),
+ ("linux", "x86_64", "pacman", "Concat-{v}-linux-x86_64.pkg.tar.zst"),
("linux", "aarch64", "deb", "Concat-{v}-linux-aarch64.deb"),
("linux", "aarch64", "rpm", "Concat-{v}-linux-aarch64.rpm"),
("linux", "aarch64", "appimage", "Concat-{v}-linux-aarch64.AppImage"),
+ ("linux", "aarch64", "pacman", "Concat-{v}-linux-aarch64.pkg.tar.zst"),
("windows", "x86_64", "setup", "Concat-{v}-windows-x86_64-setup.exe"),
("windows", "x86_64", "msi", "Concat-{v}-windows-x86_64.msi"),
("windows", "aarch64", "setup", "Concat-{v}-windows-aarch64-setup.exe"),