summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46e825a1d7149c5511d59336d36c1a7f1cbf218f (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
# Maintainer: Nico <d3sox at protonmail dot com>
# Contributor: Amal Karunarathna <nasashinega@gmail.com>

_gitname=applet-window-appmenu
pkgname=plasma5-applets-window-appmenu-git
pkgver=0.6.0.r0.g7886b78
pkgrel=1
pkgdesc="Plasma 5 applet in order to show the window appmenu"
arch=(x86_64)
url="https://github.com/psifidotos/${_gitname}"
license=(GPL)
depends=(plasma-workspace)
makedepends=(git extra-cmake-modules)
conflicts=(plasma5-applets-window-appmenu)
provides=(plasma5-applets-window-appmenu)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd ${_gitname}
  git describe --long --tags $(git rev-list --tags --max-count=1) | sed 's/^[v-]//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../applet-window-appmenu \
    -DCMAKE_INSTALL_PREFIX=/usr
}

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