summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 783ad92f71eee662fee3dcf4fbeb035e6c26690d (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
# Maintainer: BrLi <brli@chakralinux.org>
_pkgname=plugin-wingmenu
pkgname=lxqt-$_pkgname-git
pkgver=r57.70b9b80
pkgrel=1
pkgdesc="alternative menu plugin for lxqt-panel"
arch=(x86_64)
url="https://github.com/slidinghotdog/plugin-wingmenu"
license=('LGPL-2.1-or-later')
groups=(lxqt)
depends=(liblxqt lxqt-panel)
makedepends=(lxqt-build-tools clang)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+$url")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cmake -B build -S "$srcdir/${pkgname%-git}"
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}