summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ea3d83a2155bf05e75c4930f372f0a34e21a31f (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
pkgname=plasma6-applets-uptime-widget-git
_gitpkgname=plasma-applet-uptime-widget
pkgver=r15.be8cc87
pkgrel=2
pkgdesc='A simple uptime KDE plasmoid'
arch=(any)
url='https://github.com/KaOSx/plasma-applet-uptime-widget'
license=(GPL-2.0-only)
depends=(
    libplasma
    plasma5support
)
makedepends=(
    extra-cmake-modules
    git
)
conflicts=(plasma5-applets-uptime-widget-git)
source=($_gitpkgname::git+https://github.com/KaOSx/$_gitpkgname)
b2sums=(SKIP)

pkgver() {
    cd $_gitpkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
    cmake -B build -S $_gitpkgname \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

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