summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8e80f8e673a3ad8ddfb70cb14a07b6561f2a0bb (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
# Author: rr- <rr-@sakuya.pl>
# Maintainer: rr- <rr-@sakuya.pl>
pkgname=shot-git
pkgver=2.1
pkgrel=1
pkgdesc='A minimal screenshot tool aiming to provide good control over screenshot region.'
arch=('any')
url='https://github.com/rr-/shot'
license=('MIT')
depends=('git' 'gcc' 'xorg-xrandr' 'cmake')
source=("$pkgname::git://github.com/rr-/shot.git")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --tags --abbrev=0
}

build() {
    cd "$pkgname"
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_RELEASE_TYPE=Release
    make
}

package() {
    cd "$pkgname"
    cd build
    make DESTDIR="$pkgdir" install
}