summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5b2bc39552a59207a40b49ce12dc84709496ea4 (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
# Maintainer: That One Seong <thatoneseong@protonmail.com>
# Contributor: cupnoodles <nwwdles@gmail.com>

pkgname=plasma5-applets-virtual-desktop-bar-wayland-git
pkgver=r524.3c42104
pkgrel=1
pkgdesc='KDE Plasma panel applet for managing virtual desktops, patched for Wayland support'
arch=(i686 x86_64)
url='https://github.com/wsdfhjxc/virtual-desktop-bar'
license=(GPL3)
depends=(plasma-workspace)
makedepends=(git gcc extra-cmake-modules)
source=('git+https://github.com/lenonk/virtual-desktop-bar.git#branch=wayland')
md5sums=('SKIP')

pkgver() {
    cd virtual-desktop-bar
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../virtual-desktop-bar
    make
}

package() {
    cd build
    make DESTDIR="$pkgdir" install
}