Files
omarchy-pkgs/pkgbuilds/omasnap/PKGBUILD
T
2026-08-12 16:58:21 -04:00

48 lines
1020 B
Bash

# Maintainer: Tobi Lütke <tobi@lutke.com>
pkgname=omasnap
pkgver=1.11.0
pkgrel=1
pkgdesc="Native Wayland screenshot and annotation overlay for Hyprland"
arch=('x86_64')
url="https://github.com/tobi/omasnap"
license=('MIT')
depends=(
'grim'
'hyprland'
'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=('ec9af2b840d7d72401cc6921716497b0c8a2cd27763d43a7b23ed71c6c0be84a')
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"
}