summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99eb5941814aafac73b2c55b65f3d9a21817f9eb (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
# Maintainer: redtide <redtid3@gmail.com>

_pkgname=sqreenshot
pkgname="${_pkgname}-git"
pkgver=r1.2e7be2f
pkgrel=1
pkgdesc="Simple screenshot tool based on Gnome Screenshot"
url="https://github.com/redtide/${_pkgname}"
arch=("x86_64")
license=("GPL3")
depends=("qt5-base" "qt5-x11extras"  "libx11" "libxfixes")
makedepends=("cmake" "git" "qt5-tools")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}"::"git+${url}")
sha512sums=("SKIP")

pkgver() {
    cd "${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
    cd "${srcdir}/${pkgname}"
    cmake -DCMAKE_BUILD_TYPE="None" \
        -DCMAKE_INSTALL_PREFIX="/usr" \
        -Wno-dev \
        -B build \
        -S .
    cmake --build build --target all
}
package() {
    cd "${srcdir}/${pkgname}"
    DESTDIR="${pkgdir}" cmake --build build --target install
}