From 412fbe35a1f3819979dc6ae49904e82f06b60136 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Fri, 12 Jun 2026 13:27:04 -0400 Subject: [PATCH] Add tensaku --- pkgbuilds/tensaku/.omarchy/package.json | 4 +++ pkgbuilds/tensaku/PKGBUILD | 46 +++++++++++++++++++++++++ pkgbuilds/tensaku/tensaku.install | 25 ++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 pkgbuilds/tensaku/.omarchy/package.json create mode 100644 pkgbuilds/tensaku/PKGBUILD create mode 100644 pkgbuilds/tensaku/tensaku.install diff --git a/pkgbuilds/tensaku/.omarchy/package.json b/pkgbuilds/tensaku/.omarchy/package.json new file mode 100644 index 0000000..096966d --- /dev/null +++ b/pkgbuilds/tensaku/.omarchy/package.json @@ -0,0 +1,4 @@ +{ + "source": "aur", + "upstream_commit": "878f0d71c7c963f09920a14957cbb23cdd21d957" +} diff --git a/pkgbuilds/tensaku/PKGBUILD b/pkgbuilds/tensaku/PKGBUILD new file mode 100644 index 0000000..a640583 --- /dev/null +++ b/pkgbuilds/tensaku/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Jon Kinney +# +# Source of truth for the AUR `tensaku` package. The aur-publish.yml +# workflow copies this file, pins pkgver/pkgrel to the release, +# refreshes sha256sums with updpkgsums, regenerates .SRCINFO, and +# pushes to the AUR. Edit depends / package() etc. here — never in the +# AUR repo directly. +pkgname=tensaku +pkgver=0.26.3 +pkgrel=1 +pkgdesc='Modern screenshot annotation tool for Wayland' +arch=('x86_64') +url='https://github.com/jondkinney/tensaku' +license=('MPL-2.0') +depends=('gtk4' 'gtk4-layer-shell' 'libadwaita' 'libepoxy' 'fontconfig') +makedepends=('rust') +install=tensaku.install +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('ca5ade6ba0e47938186e4487dea57735258a6732a2bb25565fa8a9d99c2f30cc') + +prepare() { + cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --features ci-release +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 target/release/tensaku "$pkgdir/usr/bin/tensaku" + install -Dm755 assets/tensaku-edit "$pkgdir/usr/bin/tensaku-edit" + install -Dm644 dev.tensaku.Tensaku.desktop "$pkgdir/usr/share/applications/dev.tensaku.Tensaku.desktop" + install -Dm644 assets/tensaku.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/dev.tensaku.Tensaku.svg" + install -Dm644 man/tensaku.1 "$pkgdir/usr/share/man/man1/tensaku.1" + install -Dm644 completions/tensaku.bash "$pkgdir/usr/share/bash-completion/completions/tensaku" + install -Dm644 completions/tensaku.fish "$pkgdir/usr/share/fish/vendor_completions.d/tensaku.fish" + install -Dm644 completions/_tensaku "$pkgdir/usr/share/zsh/site-functions/_tensaku" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE" +} diff --git a/pkgbuilds/tensaku/tensaku.install b/pkgbuilds/tensaku/tensaku.install new file mode 100644 index 0000000..a528173 --- /dev/null +++ b/pkgbuilds/tensaku/tensaku.install @@ -0,0 +1,25 @@ +# Shown by pacman after installing Tensaku. + +post_install() { + cat <<'MSG' + + + ================================================================ + ================================================================ + + >>> TENSAKU INSTALLED -- ONE MORE STEP TO FINISH <<< + + Run this command to finalize the Omarchy integration + (it makes Tensaku your screenshot editor, replacing Satty): + + tensaku --wire-omarchy + + Your screenshot keys will then open captures in Tensaku. + Check status any time: tensaku --doctor + + ================================================================ + ================================================================ + + +MSG +}