summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9905073ab9e0131626f6b2e51ebeeede84982bd (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
# Maintainer: Francois Menning <f.menning@pm.me>

_gitname=chromeos-kde
pkgname=chromeos-kde-theme-git
pkgver=r28.55d0e85
pkgrel=1
pkgdesc="ChromeOS theme for the KDE Plasma desktop."
arch=('any')
url="https://github.com/vinceliuice/ChromeOS-kde"
license=('GPL3')
depends=('plasma-desktop')
optdepends=('kvantum-qt5' 'chromeos-gtk-theme-git' 'tela-icon-theme-git' 'sddm')
makedepends=('git')
source=(
  "${_gitname}::git+https://github.com/vinceliuice/ChromeOS-kde.git"
  'fix-theme-installer-path.patch'
)
sha256sums=('SKIP'
            '3c5ec095be345bc5e560c0f594e1afdef9b2ffef9e3de90c52673382ec85f729')

pkgver() {
  cd ${_gitname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare () {
  export SRCDIR="$srcdir/$_gitname"
  export PKGDIR="$pkgdir"

  cd "$SRCDIR"
  patch -Np1 -i "$srcdir"/fix-theme-installer-path.patch
}

package() {
  export SRCDIR="$srcdir/$_gitname"
  export PKGDIR="$pkgdir"

  cd "$SRCDIR"
  bash install.sh

  # sddm
  sddmdir="${pkgdir}/usr/share/sddm/themes"

  install -dm755 "${sddmdir}"
  cp -r sddm/ChromeOS "${sddmdir}"
}