summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23a162fca24e1902e5b00b1c9fc3e3da618eb517 (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
46
47
48
# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgbase=gruvbox-material-theme-git
_pkgbase=gruvbox-material-theme
pkgname=('gruvbox-material-gtk-theme-git'
         'gruvbox-material-icon-theme-git')
pkgver=r14.cc255d43
pkgrel=1
arch=('any')
url='https://github.com/sainnhe/gruvbox-material-gtk'
options=('!strip')
makedepends=('git')
license=('MIT')
source=("${_pkgbase}::git+${url}.git")
sha256sums=('SKIP')

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

package_gruvbox-material-gtk-theme-git() {
    pkgdesc='Gruvbox Material theme for GTK, Gnome, Cinnamon, XFCE, Unity and Plank'
    depends=(gtk3)
    optdepends=('gtk-engine-murrine: for gtk2 theme'
                'gruvbox-material-icon-theme: gruvbox material icon theme')
    provides=(gruvbox-material-gtk-theme)
    conflicts=(gruvbox-material-gtk-theme)

    install -d "${pkgdir}/usr/share/themes/Gruvbox-Material-Dark"
    cd "${srcdir}/${_pkgbase}/themes/Gruvbox-Material-Dark"
    cp -r ./* "${pkgdir}/usr/share/themes/Gruvbox-Material-Dark/"

    install -d "${pkgdir}/usr/share/themes/Gruvbox-Material-Dark-HIDPI"
    cd "${srcdir}/${_pkgbase}/themes/Gruvbox-Material-Dark-HIDPI"
    cp -r ./* "${pkgdir}/usr/share/themes/Gruvbox-Material-Dark-HIDPI/"
}

package_gruvbox-material-icon-theme-git() {
    pkgdesc='Gruvbox Material icon theme'
    depends=('gtk-update-icon-cache')
    optdepends=('gruvbox-material-gtk-theme: gruvbox material gtk theme')
    provides=(gruvbox-material-icon-theme)
    conflicts=(gruvbox-material-icon-theme)

    install -d "${pkgdir}/usr/share/icons/Gruvbox-Material-Dark"
    cd "${srcdir}/${_pkgbase}/icons/Gruvbox-Material-Dark"
    cp -r ./* "${pkgdir}/usr/share/icons/Gruvbox-Material-Dark/"
}