summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00c07b833ceafa2dcd6f8851f0bf8bf985929687 (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
# Maintainer: Vlad Zahorodnii <contact@vladzahorodnii.com>

pkgname=kwin-effects-cube-git
pkgver=1.0.0.r0.3606d40
pkgrel=1
pkgdesc='Desktop cube effect for KWin'
arch=('x86_64')
url='https://github.com/zzag/kwin-effects-cube'
license=('GPL3')
depends=('kwin>=5.25.0' qt5-quick3d)
makedepends=(extra-cmake-modules)
source=("${pkgname}::git+https://github.com/zzag/kwin-effects-cube.git")
sha256sums=('SKIP')

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

build() {
    cmake -B build -S "${pkgname}" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib
    cmake --build build
}

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