summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 405a112cf4503cf26a2071667b5cb37bfafdc4e4 (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: ArtFox3  <artfox3@gmail.com>
pkgname="applet-window-appmenu-git"
pkgver=v0.8.0
pkgrel=2
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-framework5' 'kdecoration' 'plasma-workspace')
conflicts=('plasma5-applets-window-appmenu' 'plasma5-applets-window-appmenu-git')
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
}