summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79609ba7dc3d0a0f7616c54d430dcb73e655dc17 (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
# Maintainer: Jan Neumann <neum DOT ja AT gmail DOT com>

pkgname=plasma5-theme-mcmojave-git
_gitname=McMojave-kde
pkgver=r97.d42f4c6
pkgrel=1
pkgdesc="MacOSX Mojave like theme for KDE Plasma "
arch=('any')
url="https://github.com/vinceliuice/McMojave-kde"
license=('GPL3')
depends=('plasma-desktop')
optdepends=('kvantum' 'mcmojave-circle-icon-theme-git' 'mojave-gtk-theme-git' 'sddm')
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() {
   mkdir -p ${pkgdir}/usr/share/aurorae/themes/{McMojave,McMojave-1.5x,McMojave-2.0x,McMojave-light}
   cp -r  ${srcdir}/${_gitname}/aurorae/* ${pkgdir}/usr/share/aurorae/themes
   
   mkdir -p ${pkgdir}/usr/share/color-schemes
   cp -r ${srcdir}/${_gitname}/color-schemes ${pkgdir}/usr/share
   
   mkdir -p ${pkgdir}/usr/share/plasma/desktoptheme/{McMojave-light,McMojave}
   cp -r ${srcdir}/${_gitname}/plasma/desktoptheme ${pkgdir}/usr/share/plasma

   mkdir -p ${pkgdir}/usr/share/plasma/look-and-feel/{com.github.vinceliuice.McMojave-light,com.github.vinceliuice.McMojave}
   cp -r ${srcdir}/${_gitname}/plasma/look-and-feel/ ${pkgdir}/usr/share/plasma
    
   mkdir -p ${pkgdir}/usr/share/sddm/themes/McMojave
   cp -r ${srcdir}/${_gitname}/sddm/McMojave ${pkgdir}/usr/share/sddm/themes

   mkdir -p ${pkgdir}/usr/share/Kvantum/{McMojave-light,McMojave}
   cp -r ${srcdir}/${_gitname}/Kvantum ${pkgdir}/usr/share
}