summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6074a86bf1cb70384af75cd902fbe2ffdf43a5d8 (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: ChinaNuke <chinanuke@nuke666.cn>
# Contributor: Shayne Hartford <shayneehartford@gmail.com>

pkgname=plasma6-themes-layan-git
pkgver=r86.1eed6f6
pkgrel=1
pkgdesc="A flat Design theme for KDE Plasma6 desktop"
arch=(any)
url="https://github.com/vinceliuice/Layan-kde"
license=('GPL3')
makedepends=('git')
optdepends=('kvantum: Better looking for application styles'
            'tela-icon-theme: Matching icon theme')
provides=('layan-kde-git')
replaces=('layan-kde-git')
conflicts=('layan-kde-git' 'plasma5-themes-layan-git')
options=('!strip')
source=("${pkgname%-git}::git+https://github.com/vinceliuice/Layan-kde.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    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/6.0"
    sed -i "s#/usr/share#$pkgdir/usr/share#" install.sh
}

package() {
    # Install aurorae themes, kvantum themes, plasma color schemes, 
    # plasma desktop themes, plasma look-and-feel packages.
    cd "$srcdir/${pkgname%-git}"
    install -d "$pkgdir/usr/share"
    ./install.sh

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