# Maintainer: dr460nf1r3 _gitname=applet-window-buttons pkgname=plasma5-applets-window-buttons-git pkgver=0.9.0.r2.g9910320 pkgrel=1 pkgdesc="Plasma 5 applet in order to show window buttons in your panels" arch=(x86_64) url="https://github.com/psifidotos/${_gitname}" license=(GPL) depends=(plasma-workspace) makedepends=(git extra-cmake-modules) conflicts=(plasma5-applets-window-buttons libappletdecoration) provides=(plasma5-applets-window-buttons libappletdecoration) source=("git+${url}.git") sha256sums=('SKIP') pkgver() { cd ${_gitname} git describe --long --tags | sed 's/^[v-]//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { mkdir -p build } build() { cd build cmake ../applet-window-buttons \ -DCMAKE_INSTALL_PREFIX=/usr } package() { cd build make DESTDIR="$pkgdir" install }