summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1fbae6e0a616192aabd26b5983750bd3243f928 (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
pkgname=kwin-effects-yet-another-magic-lamp-reloaded-git
pkgver=6.6
pkgrel=1
pkgdesc="Fork of Yet Another Magic Lamp, targeting Plasma 6.6+ with exclusive Wayland support"
arch=('x86_64')
url="https://github.com/koryboc/kwin-effects-yet-another-magic-lamp-reloaded"
license=('GPL-2.0-only')
depends=(
    'kwin'
    'qt6-base'
    'kcmutils'
    'kconfig'
    'kconfigwidgets'
    'kcoreaddons'
    'kwindowsystem'
    'libdrm'
)
makedepends=('cmake' 'extra-cmake-modules' 'git')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

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

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