summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e998ba9810f33c7f129ccf6fff57471329aa6bc (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
# 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=('libxrandr')
makedepends=('cmake' 'git')
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
}