summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed7bf0483fd33b84ebb49e92c9c78fee7abe26c2 (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
# Maintainer: ArtFox3  <artfox3@gmail.com>
pkgname="applet-window-appmenu-git"
pkgver=v0.7.1.r2.ga673b19
pkgrel=1
epoch=
pkgdesc="This is a Plasma 5 applet that shows the current window appmenu in your panels. This plasmoid is coming from Latte land but it can also support Plasma panels."
arch=('i686' 'x86_64')
url="https://github.com/psifidotos/applet-window-appmenu.git"
license=('GPL')
groups=()
makedepends=(
  'gcc' 'git' 'extra-cmake-modules'
)
depends=(
  'plasma-framework' 'gettext' 'kdecoration'
)
source=(
  "$pkgname::git+$url"
)
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
	cd "$pkgname"
	if ! [ -a build ] ; then
	    mkdir build
	fi
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release  .. -Wnodev
	make -j$(nproc)
}

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