summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a49fe9149482ba19a59823d8d59f1f6ba2cd63fe (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
# Maintainer: Gustavo Parreira <gustavotcparreira at gmail dot com>
_basename='hyprshot'
pkgname="$_basename-git"
pkgver=1.3.0.r0.054b896
pkgrel=1
pkgdesc="A utility to easily take screenshots in Hyprland using your mouse"
arch=('any')
url="https://github.com/Gustash/Hyprshot"
license=('GPL')
depends=('bash' 'jq' 'grim' 'slurp' 'wl-clipboard' 'libnotify')
optdepends=('hyprpicker: to freeze the screen while taking the screenshot')
makedepends=('git')
provides=("$_basename")
conflicts=("$_basename")
source=("$_basename::git+https://github.com/Gustash/Hyprshot.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_basename"

    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
    cd "$srcdir/$_basename"
    mkdir -p "$pkgdir/usr/bin"

    cp hyprshot "$pkgdir/usr/bin/"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_basename/LICENSE"
}