blob: f53c0c62f71090198f4af791fbd1eb2c6f370b07 (
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
|
# 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.4.r0.gd9e239d
pkgrel=1
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' 'plasma-desktop' 'plasma-integration' 'plasma-workspace' 'qt6-svg' 'hicolor-icon-theme')
makedepends=('base-devel' 'git' 'gcc' 'qt6-base' 'qt6-tools'
'cmake' 'cmake-extras' '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 -S "${srcdir}/${pkgname}/src/" \
-B "${srcdir}/${pkgname}/build/" \
-DCMAKE_INSTALL_PREFIX="/usr/"
cmake --build "${srcdir}/${pkgname}/build/"
}
check() {
desktop-file-validate "${srcdir}/${pkgname}/src/${_pkgname}.desktop"
fdupes -r -s "${srcdir}/"
}
package() {
DESTDIR="${pkgdir}" cmake --install "${srcdir}/${pkgname}/build/"
install -Dm644 "${srcdir}/${pkgname}/src/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
desktop-file-validate "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
fdupes -r -s "${pkgdir}/"
}
|