summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7de066e88e9f0322f657f96155eedc22db01598e (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
# Contributor: katt <magunasu.b97@gmail.com>
# Contributor: FadeMind <fademind@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

_name=spectacle
pkgname=${_name}-git
pkgver=22.04.0.r311.gca6de42
pkgrel=1
pkgdesc='KDE screenshot capture utility'
arch=('x86_64')
url='https://apps.kde.org/spectacle/'
license=('GPL')
groups=('kde-applications' 'kde-graphics')
provides=("${_name}")
conflicts=("${_name}")
depends=('xcb-util-cursor' 'purpose' 'knewstuff' 'qt5-tools' 'kpipewire')
makedepends=('git' 'extra-cmake-modules' 'kdoctools' 'plasma-wayland-protocols')
source=("git+https://invent.kde.org/graphics/spectacle.git")
sha256sums=('SKIP')

pkgver() {
    cd "${_name}"
    git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cmake -B "build" -S "${_name}" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_TESTING=OFF

    cmake --build "build"
}

package() {
    DESTDIR="${pkgdir}" cmake --install "build"
}