summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b6f3c84032b52094f8e2d0caaa65515c7f87048 (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
# Author: William Franco Abdul Hai <williamhai@hotmail.com>
# Contributor: Martin Stibor <martin.von.reichenberg@protonmail.com>
# Maintainer: Martin Stibor <martin.von.reichenberg@protonmail.com>

pkgname='koi'
_pkgname='Koi'
pkgver=0.4
pkgrel=2
pkgdesc="Scheduled LIGHT/DARK Theme Switching for the KDE Plasma Desktop"
arch=('x86_64' 'aarch64')
url="https://github.com/baduhai/Koi"
license=('LGPL3')
depends=('gcc-libs' 'hicolor-icon-theme' 'plasma-desktop' 'plasma-integration' 'plasma-workspace')
makedepends=('base-devel' 'qt6-base' 'qt6-tools' 'cmake'
             'desktop-file-utils' 'extra-cmake-modules' 'fdupes')
optdepends=('xsettingsd: Apply settings to GTK applications on the fly'
            'kvantum: Powerful extra customisable themes')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
md5sums=('bbf555fecfe23918aa0a526d13d564c1')

build() {
    cmake -S "${srcdir}/${_pkgname}-${pkgver}/src/" \
          -B "${srcdir}/${_pkgname}-${pkgver}/build/" \
          -DCMAKE_INSTALL_PREFIX="/usr/"

    cmake --build "${srcdir}/${_pkgname}-${pkgver}/build/"
}

check() {
    desktop-file-validate "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop"
    fdupes -r -s "${srcdir}/"
}

package() {
    DESTDIR="${pkgdir}" cmake --install "${srcdir}/${_pkgname}-${pkgver}/build/"

    install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"

    desktop-file-validate "${pkgdir}/usr/share/applications/${pkgname}.desktop"
    fdupes -r -s "${pkgdir}/"
}