Arch and its Derivatives PKGBUILD

Here’s a PKGBUILD for Arch and its derivatives eg Manjaro

pkgname=atuin-desktop-bin
pkgver= <Downloaded rpm version>
pkgrel=1
pkgdesc="Atuin Desktop: Runbooks that Run. A local-first, executable runbook editor for real terminal workflows"
arch=('x86_64')

url="https://blog.atuin.sh/atuin-desktop-runbooks-that-run/" 

depends=('cairo' 'dbus' 'desktop-file-utils' 'fontconfig' 'gdk-pixbuf2' 'glib2' 'gtk2' 'gtk3' 'hicolor-icon-theme' 'libappindicator-gtk3' 'libsoup3' 'pango' 'webkit2gtk-4.1' 'zlib')

source=("https://example.com/rpm_x86_64") 

sha256sums=('SKIP')

package() {
  find "$srcdir/" -mindepth 1 -maxdepth 1 -type d | xargs cp -r -t "$pkgdir"
}

1.Enter the URLs and version manually
2. Save the PKGBUILD in the same directory as the downloaded rpm
3. Execute makepkg -si to package and install or just makepkg -s to just package.

Caveat:-

  1. Still a WIP
  2. Will automate better with download links.

Known Issues:-
1.

2 Likes

Thank you for sharing!

I am using a slightly different PKGBUILD, here is my version:

This refers to the v0.0.79-1 RPM release, place that file (Atuin_Desktop-0.0.79-1.x86_64.rpm) alongside with this PKGBUILD file

To install: makepkg --install

pkgname=atuin-desktop-bin
pkgver=0.0.79
pkgrel=1
pkgdesc="Atuin Desktop: Runbooks that Run. A local-first, executable runbook editor for real terminal workflows"
arch=('x86_64')
url="https://github.com/atuinsh/desktop"
license=('MIT')
depends=(
    "cairo"
    "dbus"
    "fontconfig"
    "gcc-libs"
    "gdk-pixbuf2"
    "glib2"
    "glibc"
    "gtk3"
    "hicolor-icon-theme"
    "libsoup3"
    "pango"
    "webkit2gtk-4.1"
    "zlib"
)
makedepends=()
options=("!debug")

provides=("${pkgname%-bin}")

source_x86_64=(
     "Atuin_Desktop-${pkgver}-1.x86_64.rpm"
)

package() {
	cp -ar "${srcdir}/usr/" "${pkgdir}/usr/"
}

sha256sums_x86_64=('2ec468a6c31aaa6cbb06a754c0086ae96ffe3f31d52a252ce3c300abbb99aa31')

1 Like

Nice!

Later on we should be able to get both the pkgver and the sha256sums automatically from upstream.

yeah, as soon as Atuin-Desktop is available for all :+1:

BTW: I can also provide and maintain the AUR package for Arch Linux too, if that’s OK for you @ellie

I created an online version of the PKGBUILD file.
I am planning to keep it up to date with the latest releases.

Please poke me if I miss any update :smiley:

1 Like

awesome, thank you! I made @Kysh’s post a wiki so you should be able to edit it (hope you don’t mind Kysh!), if that’s any easier

Thanks! on a second thought: I should have pushed it to github, and later move it to ArchLinux AUR repo :sweat_smile:

1 Like

Hey! am all for it so no worries

1 Like

I already have the means to get the pkgver and the hash sums automatically in my own internal version though it involves exposing the URI. Just waiting for @ellie and team to make everything public.

1 Like

Same here :slight_smile: Would you @Kysh like to collaborate on maintaining it together on the Arch AUR repo? WDYT?

Glad to help in any way possible so yeah let’s do it once we have the go ahead.

1 Like

Just curious (since there was a new release), how would the Linux version get update?

The macOS version contain auto-update logic, but the Linux version does not - it has no “Check for update” menu item, there is no download link for new version either - how can I get an updated version?

If you’ve logged into Atuin Hub via the Desktop app, you should have access to a download link on the right side of the navigation bar at https://hub.atuin.sh. Starting a couple versions ago, the Linux version also redirects you to this page via a popup when a new release is available. Note that the links on that page are evergreen; they always lead to the latest release.

The missing menu item is an oversight, and will be fixed in an upcoming release.

Due to syncing issues I’m using the Linux version offline. Glad to see the download page on https://hub.atuin.sh.