summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b41dde20e65e39315e38aaa831a7d80f55991a70 (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
# Maintainer: creations <creations@creations.works>
pkgname=grabit
pkgver=0.6.1
pkgrel=1
pkgdesc="Screenshot, screen-recording, OCR, and uploader for wlroots and KDE Plasma 6 Wayland compositors"
arch=('x86_64' 'aarch64')
url="https://heliopolis.live/creations/grabit"
license=('AGPL-3.0-or-later')
depends=(
    'cairo'
    'curl'
    'dbus'
    'file'
    'json-c'
    'libxkbcommon'
    'wayland'
)
makedepends=(
    'git'
    'wayland-protocols'
)
optdepends=(
    'ffmpeg: --record support'
    'tesseract: --tesseract (OCR) support'
    'tesseract-data-eng: english OCR data'
    'translate-shell: --translate (OCR -> translated text) support'
    'libjpeg-turbo: JPEG output (--format jpeg)'
    'libwebp: WebP output (--format webp)'
    'pipewire: pw-play (default shutter-sound player)'
    'libpulse: paplay (alternative sound player)'
    'alsa-utils: aplay (alternative sound player)'
    'sox: play (alternative sound player)'
)
conflicts=('grabit-bin' 'grabit-git')
source=("grabit-${pkgver}::git+https://heliopolis.live/creations/grabit.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/grabit-${pkgver}"
    make all VERSION="${pkgver}"
}

package() {
    cd "${srcdir}/grabit-${pkgver}"
    make install DESTDIR="${pkgdir}" PREFIX="/usr"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
    install -Dm644 OPTIONS.md "${pkgdir}/usr/share/doc/${pkgname}/OPTIONS.md"
    install -Dm644 PLUGINS.md "${pkgdir}/usr/share/doc/${pkgname}/PLUGINS.md"
}