summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47bdf326084f4e0d86cf77fc339345f48eaecf24 (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
# Maintainer: Gustavo Parreira <gustavotcparreira at gmail dot com>
_basename='sway-screenshot'
pkgname="$_basename-git"
pkgver=1.0.0.r0.53a3e60
pkgrel=1
pkgdesc="A utility to easily take screenshots in swaywm using your mouse"
arch=('any')
url="https://github.com/Gustash/sway-screenshot"
license=('GPL')
depends=('jq' 'grim' 'slurp' 'wl-clipboard' 'libnotify' 'imagemagick')
makedepends=('git')
provides=("$_basename")
conflicts=("$_basename")
source=("$_basename::git+https://github.com/Gustash/sway-screenshot.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 sway-screenshot "$pkgdir/usr/bin/"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_basename/LICENSE"
}