summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e1ae6d950b560678c19d95b9407cfff59cf41a7 (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
# Maintainer: Rohan Ferris <zjrohan at gmail dot com>

pkgname="kaze-icon-theme-git"
pkgver=r37.0860f33
pkgrel=1
arch=("any")
pkgdesc="Kaze icon theme for KDE"
url="https://github.com/2O48/Kaze.git"
_reponame='Kaze'
_kazedark="${_reponame}/Kaze-dark"
_kazelight="${_reponame}/Kaze-light"
makedepends=('git')
depends=(
        "breeze"
)
provides=("kaze-icon-theme")
source=(
	"git+$url")
b2sums=('SKIP')

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

package() (
        install -d "$pkgdir/usr/share/icons"
	cp -r ${_kazedark} ${pkgdir}/usr/share/icons/
	cp -r ${_kazelight} ${pkgdir}/usr/share/icons/
	find ${pkgdir}/usr -type f -exec chmod 644 {} \;
        find ${pkgdir}/usr -type d -exec chmod 755 {} \;
)