summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartinVonReichenberg2024-06-13 16:23:32 +0200
committerMartinVonReichenberg2024-06-13 16:23:32 +0200
commit4158b4f81cace5e90813680a1a07d561ab462300 (patch)
tree4640d59688dc2bf09fc982da163577afac2ab5d5
parentd6463314c7f917828bd8b2f14e7ae0423fb6ac94 (diff)
downloadaur-4158b4f81cace5e90813680a1a07d561ab462300.tar.gz
Update to the latest upstream GIT version; using the latest TAG version.
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD41
2 files changed, 23 insertions, 42 deletions
diff --git a/.SRCINFO b/.SRCINFO
deleted file mode 100644
index e23fdc48e757..000000000000
--- a/.SRCINFO
+++ /dev/null
@@ -1,24 +0,0 @@
-pkgbase = koi-git
- pkgdesc = Scheduled LIGHT/DARK Theme Switching for the KDE Plasma Desktop
- pkgver = 0.2.4.r0.geae87d1
- pkgrel = 3
- url = https://github.com/baduhai/Koi
- arch = x86_64
- arch = aarch64
- license = LGPL3
- makedepends = gcc
- makedepends = qt5-base
- makedepends = qt5-tools
- makedepends = qt5-svg
- makedepends = cmake
- makedepends = extra-cmake-modules
- depends = plasma-integration
- depends = plasma-framework5
- depends = hicolor-icon-theme
- optdepends = xsettingsd: Apply settings to GTK applications on the fly
- provides = koi-0.2.4.r0.geae87d1
- conflicts = koi
- source = Koi-0.2.4.r0.geae87d1::git+https://github.com/baduhai/Koi.git
- sha256sums = SKIP
-
-pkgname = koi-git
diff --git a/PKGBUILD b/PKGBUILD
index f809c7637aa3..6a5f8c53f13d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,39 +5,44 @@
pkgname='koi-git'
_pkgname='koi'
__pkgname='Koi'
-pkgver=0.2.4.r0.geae87d1
-pkgrel=3
+pkgver=0.3
+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=('plasma-integration' 'plasma-framework5' 'hicolor-icon-theme')
-makedepends=('gcc' 'qt5-base' 'qt5-tools' 'qt5-svg' 'cmake' 'extra-cmake-modules')
-optdepends=('xsettingsd: Apply settings to GTK applications on the fly')
-provides=("${_pkgname}-${pkgver}")
+depends=('gcc-libs' 'plasma-desktop' 'plasma-integration' 'plasma-workspace' 'qt6-svg' 'hicolor-icon-theme')
+makedepends=('git' 'gcc' 'qt6-base' 'qt6-tools' 'cmake' 'extra-cmake-modules' 'desktop-file-utils' 'fdupes')
+optdepends=('xsettingsd: Apply settings to GTK applications on the fly'
+ 'kvantum: Powerful extra customisable themes')
+provides=("${_pkgname}")
conflicts=('koi')
-source=("${__pkgname}-${pkgver}::git+https://github.com/baduhai/Koi.git")
+source=("${pkgname}::git+https://github.com/baduhai/Koi.git")
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${__pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare() {
- mkdir -p "${srcdir}/${__pkgname}-${pkgver}/src/build/"
-}
-
build() {
- cmake -S "${srcdir}/${__pkgname}-${pkgver}/src/" \
- -B "${srcdir}/${__pkgname}-${pkgver}/src/build/" \
- -DCMAKE_INSTALL_PREFIX=/usr/
+ cmake -S "${srcdir}/${pkgname}/src/" \
+ -B "${srcdir}/${pkgname}/src/build/" \
+ -DCMAKE_INSTALL_PREFIX="/usr/"
- make -C "${srcdir}/${__pkgname}-${pkgver}/src/build/" all
+ make -C "${srcdir}/${pkgname}/src/build/"
+}
+
+check() {
+ desktop-file-validate "${srcdir}/${pkgname}/src/${_pkgname}.desktop"
+ fdupes -r -s "${srcdir}/"
}
package() {
- make -C "${srcdir}/${__pkgname}-${pkgver}/src/build/" DESTDIR="${pkgdir}" install
+ make -C "${srcdir}/${pkgname}/src/build/" DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${srcdir}/${pkgname}/src/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
- install -Dm644 "${srcdir}/${__pkgname}-${pkgver}/src/koi.desktop" -t "${pkgdir}/usr/share/applications/"
+ desktop-file-validate "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ fdupes -r -s "${pkgdir}/"
}