summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec5b3e3b3d6fd9140ccae42014722ad2fb742cc3 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Mohammad Qaddoumi <mqaddumi.7994kohaa@gmail.com>
pkgname=quickshell-allflags-git
pkgver=r819.4b4fca3  # This will be auto-updated
pkgrel=1
pkgdesc="QtQuick based desktop shell toolkit - All features enabled (git version)"
arch=('x86_64')
url="https://quickshell.outfoxxed.me/"
license=('LGPL-3.0-or-later')
depends=(
    'qt6-base'
    'qt6-declarative'
    'qt6-svg'
    'qt6-wayland'
    'wayland'
    'libpipewire'
    'pam'
    'polkit'
    'glib2'
    'libxcb'
    'jemalloc'
    'libdrm'
    'mesa'
    'cpptrace'
    'vulkan-headers'
)
makedepends=(
    'git'
    'cmake'
    'ninja'
    'pkg-config'
    'qt6-shadertools'
    'spirv-tools'
    'wayland-protocols'
    'cli11'
)
provides=('quickshell')
conflicts=('quickshell' 'quickshell-git')
source=("git+https://github.com/quickshell-mirror/quickshell.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/quickshell"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/quickshell"
    
    cmake -B build -S . \
        -GNinja \
        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DDISTRIBUTOR="AUR (quickshell-allflags-git)" \
        -DDISTRIBUTOR_DEBUGINFO_AVAILABLE=NO \
        -DUSE_JEMALLOC=ON \
        -DSOCKETS=ON \
        -DWAYLAND=ON \
        -DWAYLAND_WLR_LAYERSHELL=ON \
        -DWAYLAND_SESSION_LOCK=ON \
        -DWAYLAND_TOPLEVEL_MANAGEMENT=ON \
        -DSCREENCOPY=ON \
        -DX11=ON \
        -DSERVICE_PIPEWIRE=ON \
        -DSERVICE_STATUS_NOTIFIER=ON \
        -DSERVICE_MPRIS=ON \
        -DSERVICE_PAM=ON \
        -DSERVICE_POLKIT=ON \
        -DHYPRLAND=ON \
        -DHYPRLAND_GLOBAL_SHORTCUTS=ON \
        -DHYPRLAND_FOCUS_GRAB=ON \
        -DI3=ON \
        -DI3_IPC=ON \
        -DCRASH_REPORTER=OFF
    
    cmake --build build
}

package() {
    cd "$srcdir/quickshell"
    DESTDIR="$pkgdir" cmake --install build
}