summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ac18dd4fea06fe83e018fbf9aedfb477c7938f9 (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
45
46
47
48
49
50
# Contributor: WackyIdeas <wackyideas@disroot.org>
# Maintainer: catpswin56 <catpswin5@proton.me>

pkgname=('win-gadgets-git')
pkgver=6.6.2_41.r612e6cc
pkgrel=2
pkgdesc="A recreation of the Windows Gadgets for AeroShell-based desktops"
arch=(x86_64)
url="https://gitgud.io/catpswin56/win-gadgets"
license=('AGPL-3.0-or-later')
depends=(glibc
         libstdc++
         kcoreaddons
         ki18n
         kirigami
         qt6-base
         qt6-declarative
         qt6-5compat
         kio
         kcmutils
         plasma5support
         libplasma
         ksvg
         kunitconversion
         kholidays
         plasma-workspace)
makedepends=(git
             extra-cmake-modules)
conflicts=('win-gadgets')
provides=('win-gadgets=${pkgver}')
options=('!debug')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
groups=(aerothemeplasma-extras
        vistathemeplasma-extras)

pkgver() {
  cd "$srcdir/${pkgname%}"
  echo "$(grep 'set(PROJECT_VERSION ' CMakeLists.txt | cut -d ' ' -f 2 | cut -d ')' -f 1)_$(git rev-list --count HEAD).r$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S ${pkgname%} \
    -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LIBEXECDIR=lib
  cmake --build build
}

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