summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 848a46ee5a9084ee3a6ef99d8d1a564b01383b63 (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
# Maintainer: shorin <2433516202@qq.com>
pkgname=wl-longshot-git
pkgver=r46.4df957f
pkgrel=1
pkgdesc="A scrolling screenshot tool (long screenshot tool) for Wayland Compositors"
arch=('x86_64')
url="https://github.com/SHORiN-KiWATA/wl-longshot"
license=('GPL3') 

depends=(
    'bash' 'grim' 'slurp' 'wl-clipboard' 'wayland'
)
makedepends=(
    'git' 'cargo' 'rust'
)
optdepends=(
    'satty: Post-capture editing'
    'xdg-utils: For opening images in default viewer'
    'fuzzel: Menu UI for wrapper mode'
    'rofi: Alternative menu UI for wrapper mode'
    'wofi: Alternative menu UI for wrapper mode'
)
provides=('wl-longshot')
conflicts=('wl-longshot')
source=("git+https://github.com/SHORiN-KiWATA/wl-longshot.git")
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/wl-longshot"
    cargo build --release
}

package() {
    cd "$srcdir/wl-longshot"

    install -Dm755 target/release/wl-longshot "$pkgdir/usr/bin/wl-longshot"
    install -Dm755 wl-longshot-menu "$pkgdir/usr/bin/wl-longshot-menu"

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}