summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e3e372dcab738c469488e02a3632f6365de1960 (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
# Maintainer: Lucas Frendorf <lucasfrendorf@gmail.com>

pkgbase=chromeos-kde-git
pkgname=(chromeos-kde-git)
_pkgname=chromeos-kde
pkgver=r79.aa9fd22
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'
            '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_chromeos-kde-git() {
    provides=('chromeos-kde')


    # Run install script from GitHub
    cd "$srcdir/${pkgname%-git}"
    install -d "$pkgdir/usr/share"
    ./install.sh

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