summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43ef865f1b1c38d2b2f9ce70751ff13481883e16 (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
# Maintainer: cat_nm
# Maintainer: jaskir
pkgname=ags-hyprpanel-git
pkgver=r407.006e954
pkgrel=1
pkgdesc="A Bar/Panel for Hyprland with extensive customizability"
arch=('x86_64')
url="https://hyprpanel.com/"
license=('MIT')
depends=(
    # official repository:
    'wireplumber'
    'libgtop'
    'bluez'
    'bluez-utils'
    'networkmanager'
    'dart-sass'
    'wl-clipboard'
    'upower'
    'gvfs'
    'ttf-jetbrains-mono-nerd'
    # aur:
    'aylurs-gtk-shell-git'
)
makedepends=(
    'meson'
    'unzip'
    'git'
)
optdepends=(
    'python: GPU usage tracking (NVidia only)'
    'python-gpustat: GPU usage tracking (NVidia only)'
    'python-pywal: Pywal hook for wallpapers'
    'pacman-contrib: Checking for pacman updates'
    'power-profiles-daemon: Switch power profiles'
    'swww: Setting wallpapers'
    'grimblast-git: For the snapshot shortcut'
    'brightnessctl: To control keyboard and screen brightness'
    'btop: To view system resource usage'
    'gpu-screen-recorder: To use the built in screen recorder'
    'hyprpicker: To use the preset color picker shortcut'
    'hypridle: To use hyprlands idle inhibitor'
    'hyprsunset: To enable the hyprland blue light filter'
    'matugen-bin: To use wallpaper based color schemes'
)
source=('git+https://github.com/Jas-SinghFSU/HyprPanel.git#branch=master')
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/HyprPanel"
    arch-meson --reconfigure build
    meson compile -C build
}

package() {
    cd "$srcdir/HyprPanel"

    meson install -C build --destdir "$pkgdir"

    # License
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}