summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f77731ddf591886bba296396bd68c7382259ad22 (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
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=grimshot-git
pkgver=1.4
pkgrel=1
pkgdesc="A helper for screenshots within sway."
arch=("x86_64")
url="https://github.com/swaywm/sway"
license=('MIT')
depends=("sway" "grim" "slurp" "jq" "xdg-user-dirs")
optdepends=('libnotify: Notify users when a screenshot is taken'
            'wl-clipboard: Copy screenshots')
makedepends=("scdoc")
source=("git+https://github.com/swaywm/sway.git")
md5sums=('SKIP')

build() {
  cd "$srcdir/sway/contrib"
  scdoc < grimshot.1.sdc > grimshot.1
}

package() {
  cd "$srcdir/sway/contrib"

  install -Dm 644 grimshot.1 "$pkgdir/usr/share/man/man1/grimshot.1"
  install -Dm 755 grimshot "$pkgdir/usr/bin/grimshot"
}