From 3aa9115366fddbea3c44b44ff48852ed0ba1df30 Mon Sep 17 00:00:00 2001 From: Alp Sahin Date: Wed, 28 Jan 2026 10:31:02 +0100 Subject: [PATCH] Initial upload: zenflow-bin 0.0.70 Zenflow - AI-powered task management desktop application --- .SRCINFO | 24 ++++++++++++++++ PKGBUILD | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e42ce092b5e2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = zenflow-bin + pkgdesc = Zenflow - AI-powered task management desktop application + pkgver = 0.0.70 + pkgrel = 1 + url = https://zencoder.ai/ + arch = x86_64 + license = Apache-2.0 + makedepends = curl + depends = gtk3 + depends = libnotify + depends = nss + depends = libxss + depends = libxtst + depends = xdg-utils + depends = at-spi2-core + depends = util-linux-libs + depends = libsecret + optdepends = libappindicator-gtk3: for system tray support + provides = zenflow + conflicts = zenflow + options = !strip + options = !debug + +pkgname = zenflow-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..43ea58fa124d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,87 @@ +# Maintainer: Alp Sahin + +pkgname=zenflow-bin +pkgver=0.0.70 +pkgrel=1 +pkgdesc="Zenflow - AI-powered task management desktop application" +arch=('x86_64') +url="https://zencoder.ai/" +license=('Apache-2.0') +depends=( + 'gtk3' + 'libnotify' + 'nss' + 'libxss' + 'libxtst' + 'xdg-utils' + 'at-spi2-core' + 'util-linux-libs' + 'libsecret' +) +optdepends=( + 'libappindicator-gtk3: for system tray support' +) +makedepends=('curl') +provides=('zenflow') +conflicts=('zenflow') +options=('!strip' '!debug') + +# Source is downloaded manually in prepare() due to server requiring Chrome user-agent +source=() +sha256sums=() +noextract=() + +_download_url="https://download.zencoder.ai/zenflowapp/latest/linux-x64/Zenflow.deb" +_user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" + +prepare() { + cd "${srcdir}" + + # Download the .deb file (requires Chrome user-agent) + if [[ ! -f "zenflow.deb" ]]; then + echo "Downloading Zenflow..." + curl -L -A "${_user_agent}" -o "zenflow.deb" "${_download_url}" + fi + + # Extract the .deb package + ar x "zenflow.deb" + + # Extract control info to verify version + tar -xzf control.tar.gz + + # Extract data + tar -xf data.tar.xz + + # Verify downloaded version matches expected version + _downloaded_ver=$(grep -oP 'Version: \K.*' control) + if [[ "${_downloaded_ver}" != "${pkgver}" ]]; then + echo "WARNING: Downloaded version (${_downloaded_ver}) does not match pkgver (${pkgver})" + echo "Please update the PKGBUILD to version ${_downloaded_ver}" + return 1 + fi +} + +package() { + cd "${srcdir}" + + # Install application files to /opt + install -dm755 "${pkgdir}/opt/Zenflow" + cp -r opt/Zenflow/* "${pkgdir}/opt/Zenflow/" + + # Set correct permissions for executables + chmod 755 "${pkgdir}/opt/Zenflow/zenflow-desktop" + chmod 755 "${pkgdir}/opt/Zenflow/chrome_crashpad_handler" + chmod 4755 "${pkgdir}/opt/Zenflow/chrome-sandbox" + + # Install desktop file + install -Dm644 usr/share/applications/zenflow-desktop.desktop \ + "${pkgdir}/usr/share/applications/zenflow-desktop.desktop" + + # Install icon + install -Dm644 usr/share/icons/hicolor/0x0/apps/zenflow-desktop.png \ + "${pkgdir}/usr/share/icons/hicolor/512x512/apps/zenflow-desktop.png" + + # Create symlink for CLI access + install -dm755 "${pkgdir}/usr/bin" + ln -s /opt/Zenflow/zenflow-desktop "${pkgdir}/usr/bin/zenflow" +}