summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e576eb6742ee385a198f3d2eb8fab7fba52ae169 (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
# Maintainer: Lucas Frendorf <lucasfrendorf@gmail.com>
# Contributor: Shayne Hartford <shayneehartford@gmail.com>

pkgbase=plasma6-themes-chromeos-kde-git
pkgname=(plasma6-themes-chromeos-kde-git)
_pkgname=ChromeOS-kde
pkgver=r83.1dd53ec
pkgrel=1
pkgdesc="ChromeOS theme for kde plasma"
arch=(any)
url="https://github.com/vinceliuice/$_pkgname"
license=('GPL3')
options=('!strip')
source=("git+$url.git")
sha256sums=('SKIP')
makedepends=('git')
optdepends=('chromeos-gtk-theme: Matching GTK theme'
            'kvantum: Better theme engine (Recommended)'
            'tela-icon-theme: Matching icon theme')

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

prepare() {
    cd "$srcdir/${_pkgname%-git}"
    sed -i "s#/usr/share#$pkgdir/usr/share#" install.sh
    cd "$srcdir/${_pkgname%-git}/sddm"
    sed -i "s#/usr/share#$pkgdir/usr/share#" install.sh
}

package() {
    # Auroae, color-scheme, Kvantum, Plasma and Wallpaper
    cd "$srcdir/${_pkgname%-git}"
    install -d "$pkgdir/usr/share"
    ./install.sh

    # Install SDDM theme
    cd "$srcdir/${_pkgname%-git}/sddm"
    install -d "$pkgdir/usr/share/sddm/themes"
    ./install.sh
}