summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94dc7594e7d2270a4a430b9497ee911584c0b43b (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
# Maintainer: MatMoul <matmoul at the google email domain which is .com>

_githubuser=matmoul
_githubrepo=plasma-containmentactions-customdesktopmenu
_pkgtagname=v0.2.0

pkgname=plasma-addons-customdesktopmenu
pkgver=0.2.0
pkgrel=1
pkgdesc='Custom desktop menu for Plasma6'
arch=('any')
url="https://github.com/${_githubuser}/${_githubrepo}"
license=('GPL3')
depends=('kdeplasma-addons')
makedepends=('git' 'extra-cmake-modules')
install=${pkgname}.install
source=("${_githubrepo}::https://github.com/${_githubuser}/${_githubrepo}/archive/refs/tags/${_pkgtagname}.tar.gz")
sha256sums=('684cf81599b4e5efa9ddc39f0de89fe9a135f7c50c10e6585d2c6a3a9b9fcebc')

build() {
	cd "${_githubrepo}-${pkgver}"/src
        cmake --fresh -B ../_build .
        cd ../_build
        make clean
        make
}

package() {
	cd "${_githubrepo}-${pkgver}"
        install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/plasma-addons-customdesktopmenu-git/LICENSE
        install -D -m755 _build/bin/plasma/containmentactions/matmoul-customdesktopmenu.so ${pkgdir}/usr/lib/qt6/plugins/plasma/containmentactions/matmoul-customdesktopmenu.so
}