summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e5aba4838c5d73f9142279c1db5ac4b78633afc (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
# Maintainer: Edward Pacman <edward at edward-p dot xyz>

_srcname=canta-kde
pkgname=canta-kde-git
pkgdesc="Canta theme for kde plasma desktop"
pkgver=r4.f40c04d
pkgrel=1
arch=('any')
url="https://github.com/vinceliuice/Canta-kde"
license=('GPL')
depends=()
makedepends=('git')
optdepends=('canta-gtk-theme-git' 'canta-icon-theme-git' 'kvantum-qt5')

source=("${_srcname}::git+https://github.com/vinceliuice/Canta-kde.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_srcname}"
    ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

prepare(){
    cd "${srcdir}/${_srcname}"
    sed -i 's,$HOME/.local/share,'"${pkgdir}"'/usr/share,g' install.sh
    sed -i 's,$HOME/.config,'"${pkgdir}"'/usr/share,g' install.sh

}
package() {
    cd "${srcdir}/${_srcname}"
    mkdir -p "${pkgdir}/usr/share/"{aurorae/themes,color-schemes,plasma/desktoptheme,plasma/look-and-feel}
    ./install.sh 
}