blob: e7cc454a97bde3f16276a88b3f7d6d0755ecc58a (
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
|
# 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-git'
_pkgname='koi'
__pkgname='Koi'
pkgver=0.5.r0.g7f4b314
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')
provides=("${_pkgname}")
conflicts=('koi')
source=("${_pkgname}::git+https://github.com/baduhai/Koi.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr/" \
-S "${srcdir}/${_pkgname}/src/" \
-B "${srcdir}/${_pkgname}/build/"
cmake --build "${srcdir}/${_pkgname}/build/" --parallel
}
package() {
cmake --install "${srcdir}/${_pkgname}/build/"
# Checking `pkgdir` ...
desktop-file-validate "${pkgdir}/usr/share/applications/local.${__pkgname}DbusInterface.desktop"
fdupes -r -s "${pkgdir}/"
}
|