Add omasnap screenshot editor

This commit is contained in:
Tobi Lutke
2026-08-10 17:09:58 -04:00
parent 91169b149b
commit dcce643017
2 changed files with 51 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"source": "local"
}
+48
View File
@@ -0,0 +1,48 @@
# Maintainer: Tobi Lütke <tobi@lutke.com>
pkgname=omasnap
pkgver=1.0.3
pkgrel=1
pkgdesc="Native Wayland screenshot and annotation overlay for Hyprland"
arch=('x86_64')
url="https://github.com/tobi/omasnap"
license=('custom')
depends=(
'grim'
'hyprland'
'hyprpicker'
'layer-shell-qt'
'qt6-base'
'tesseract'
'tesseract-data-eng'
'wayland'
'wl-clipboard'
)
makedepends=(
'cmake'
'ninja'
'pkgconf'
'wayland-protocols'
)
options=('!debug')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('6dd8568b4ea3ab4221ca1be36149c8be3e9c3d7f1bc1143b79caff760e6a7cfd')
build() {
cmake -S "$pkgname-$pkgver" -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel
}
check() {
QT_QPA_PLATFORM=offscreen \
./build/omasnap-smoke "$srcdir/omasnap-smoke-output"
}
package() {
cmake --install build --prefix "$pkgdir/usr"
install -Dm644 "$pkgname-$pkgver/README.md" \
"$pkgdir/usr/share/doc/$pkgname/README.md"
}