summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD3S0X2020-07-15 23:19:07 +0200
committerD3S0X2020-07-15 23:19:07 +0200
commit4df3fc43132a5b7a5d6c4e0eaab9af98fe0c5569 (patch)
treee29f23c66e0755d86d66d7b331b6c08ebcd5a44d
downloadaur-4df3fc43132a5b7a5d6c4e0eaab9af98fe0c5569.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD55
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..435079e8c2c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = whitesur-kde-theme-git
+ pkgdesc = MacOS big sur like theme for KDE Plasma
+ pkgver = r14.b53b3c5
+ pkgrel = 1
+ url = https://github.com/vinceliuice/WhiteSur-kde
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = plasma-desktop
+ optdepends = kvantum-qt5: for the kvantum theme
+ optdepends = sddm: for the sddm theme
+ optdepends = mcmojave-circle-icon-theme-git: matching icon theme
+ optdepends = whitesur-gtk-theme-git: matching gtk theme
+ source = git+https://github.com/vinceliuice/WhiteSur-kde.git
+ sha256sums = SKIP
+
+pkgname = whitesur-kde-theme-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1bc6de3528f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Nico <desoxhd@gmail.com>
+pkgname=whitesur-kde-theme-git
+_themeName=WhiteSur
+_gitname="$_themeName-kde"
+pkgver=r14.b53b3c5
+pkgrel=1
+pkgdesc="MacOS big sur like theme for KDE Plasma"
+arch=('any')
+url="https://github.com/vinceliuice/${_gitname}"
+license=('GPL3')
+depends=('plasma-desktop')
+optdepends=('kvantum-qt5: for the kvantum theme' 'sddm: for the sddm theme' 'mcmojave-circle-icon-theme-git: matching icon theme' 'whitesur-gtk-theme-git: matching gtk theme')
+makedepends=('git')
+source=("git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${_gitname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ # make folders
+ mkdir -p "${pkgdir}/usr/share/aurorae/themes"
+ mkdir -p "${pkgdir}/usr/share/color-schemes"
+ mkdir -p "${pkgdir}/usr/share/plasma/desktoptheme"
+ mkdir -p "${pkgdir}/usr/share/plasma/look-and-feel"
+ mkdir -p "${pkgdir}/usr/share/Kvantum"
+ mkdir -p "${pkgdir}/usr/share/sddm/themes"
+ mkdir -p "${pkgdir}/usr/share/wallpapers"
+
+ # aurorae theme
+ cp -r "${srcdir}/${_gitname}/aurorae"/* "${pkgdir}/usr/share/aurorae/themes"
+ # kvantum theme
+ cp -r "${srcdir}/${_gitname}/Kvantum"/* "${pkgdir}/usr/share/Kvantum"
+ # color scheme
+ cp -r "${srcdir}/${_gitname}/color-schemes"/* "${pkgdir}/usr/share/color-schemes"
+ # desktop theme
+ cp -r "${srcdir}/${_gitname}/plasma/desktoptheme"/${_themeName}* "${pkgdir}/usr/share/plasma/desktoptheme"
+ cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}"
+ cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}-alt"
+ cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}-dark"
+ # look and feel
+ cp -r "${srcdir}/${_gitname}/plasma/look-and-feel"/* "${pkgdir}/usr/share/plasma/look-and-feel"
+ # wallpaper
+ cp -r "${srcdir}/${_gitname}/wallpaper/${_themeName}" "${pkgdir}/usr/share/wallpapers"
+ # sddm
+ cp -r "${srcdir}/${_gitname}/sddm/${_themeName}" "${pkgdir}/usr/share/sddm/themes"
+
+ # latte
+ mkdir -p "$HOME/.config/latte"
+ cp -r "${srcdir}/${_gitname}/latte-dock"/* "$HOME/.config/latte"
+ echo "The package installed a latte-dock theme which is not deleted on removal. (Located in $HOME/.config/latte)"
+
+}