summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ac66bd8324bc858c995f65325490faaf60287e8 (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
# Maintainer: Struan Robertson <struanrobertson@protonmail.com>

pkgname=grimblast-git
pkgver=r33.d4eccc8
pkgrel=1
pkgdesc="A helper for screenshots within Hyprland."
arch=("any")
url="https://github.com/hyprwm/contrib"
licence=('MIT')
provides=('grimblast')
conflicts=('grimblast')
depends=("hyprland" "grim" "slurp" "jq")
optdepends=('libnotify: Notify users when a screenshot is taken'
            'wl-clipboard: Copy screenshots')
makedepends=("scdoc" "git")
source=("git+https://github.com/hyprwm/contrib.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/contrib"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/contrib/grimblast"
  scdoc < grimblast.1.scd > grimblast.1
}

package() {
  cd "$srcdir/contrib/grimblast"
  
  install -Dm 644 grimblast.1 "$pkgdir/usr/share/man/man1/grimblast.1"
  install -Dm 755 grimblast "$pkgdir/usr/bin/grimblast"
}