blob: 3a76dbbefca27967349dd3ddb0789fa635dec064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Barinderpreet Singh <naffydharni006@gmail.com>
#
# Note: namcap warning for qt6 modules can be safely ignored as quickshell
# dependencies will cover those
pkgname=quicksnip-git
pkgver=r51.g2bde8f0
pkgrel=1
pkgdesc="Quickshell-based Google Lens and OCR utility for Hyprland"
arch=('any')
url="https://github.com/Ronin-CK/QuickSnip"
license=('MIT')
depends=(
'quickshell'
'tesseract'
'tesseract-data-eng'
'curl'
'grim'
'imagemagick'
'wl-clipboard'
'satty'
'libnotify'
)
makedepends=('git')
provides=('quicksnip')
conflicts=('quicksnip')
source=(
"QuickSnip::git+$url.git"
"quicksnip"
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd QuickSnip
printf "r%s.g%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
package() {
# Install license
install -Dm644 QuickSnip/LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install Quickshell config (system-wide XDG)
install -d "$pkgdir/etc/xdg/quickshell"
cp -r QuickSnip "$pkgdir/etc/xdg/quickshell/QuickSnip"
rm -f "$pkgdir/etc/xdg/quickshell/QuickSnip"{README.md,LICENSE}
# Install wrapper script
install -Dm755 quicksnip \
"$pkgdir/usr/bin/quicksnip"
}
|