summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2a31a66f82fa35a1614a7cd90c1a6cf7ccfde61 (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=('GPL')
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
}