summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a373c9070bc0e7011f989502fc01e3b15d787064 (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
# Maintainer: Shantanu Baddar <shantanubaddar2006@gmail.com>
pkgname=hyprwave
pkgver=0.9.1
pkgrel=1
pkgdesc="A sleek music control bar for Wayland compositors with MPRIS integration and audio visualizer"
arch=('x86_64')
url="https://github.com/shantanubaddar/hyprwave"
license=('GPL-3.0-only')
depends=('gtk4' 'gtk4-layer-shell' 'libpulse' 'glib-networking')
makedepends=('make' 'gcc')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('80e4a57ee3f9b9283e5bc6bccfdc64882109113e19a4850ff9a2fdc50d855951')

build() {
    cd "$pkgname-$pkgver"
    make
}

package() {
    cd "$pkgname-$pkgver"
    
    # Install binary
    install -Dm755 hyprwave "$pkgdir/usr/bin/hyprwave"
    
    # Install toggle helper
    install -Dm755 hyprwave-toggle.sh "$pkgdir/usr/bin/hyprwave-toggle"
    
    # Install resources
    install -dm755 "$pkgdir/usr/share/hyprwave"
    cp -r icons "$pkgdir/usr/share/hyprwave/"
    cp -r fonts "$pkgdir/usr/share/hyprwave/"
    install -Dm644 style.css "$pkgdir/usr/share/hyprwave/style.css"
    
    # Install default config as example
    install -Dm644 config.conf "$pkgdir/usr/share/doc/$pkgname/config.conf.example"
    
    # Install documentation
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}