summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b29639381f990bd2e7bcffa9b7b084c62997e0a8 (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
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: GiacoLenzo2109 <GiacoLenzo2109@gmail.com>
# Contributor: Librewish <librewish@gmail.com>

pkgbase=croco-gnome-settings
_gitname=croco-gnome-settings
pkgname=(
    'croco-gnome-settings'
    )
pkgver=r77.94ad064
pkgrel=1
arch=('any')
_branch='master'
url="https://gitlab.com/croco-os/themes-and-settings/settings/croco-gnome-settings"
license=('GPL')
makedepends=('git')
source=("git+$url.git#branch=${_branch}")
sha256sums=('SKIP')

_install() {
    if [[ -d $srcdir/$_gitname/$1/etc ]]; then
        install -d $pkgdir/etc
        cp -rf $srcdir/$_gitname/$1/etc $pkgdir
    fi

    if [[ -d $srcdir/$_gitname/$1/usr ]]; then
        install -d $pkgdir/etc
        cp -rf $srcdir/$_gitname/$1/usr $pkgdir
    fi
    
    if [[ -d $srcdir/$_gitname/$1/skel ]]; then
        install -d $pkgdir/etc
        cp -rf $srcdir/$_gitname/$1/skel $pkgdir/etc
    fi

}

pkgver() {
	cd "$srcdir/croco-gnome-settings"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

package_croco-gnome-settings() {
    pkgdesc='Croco OS GNOME settings'
    depends=(
        'croco-common-settings'
        'kvantum-qt5'
        'nerd-fonts-fantasque-sans-mono'
        'qt5ct'
        'yaru-sound-theme'
        )
 
    install=croco-gnome-settings.install
    provides=('croco-desktop-settings')
    conflicts=('croco-desktop-settings' 'sweet-theme-dark' 'sweet-theme-git' 'kvantum-theme-sweet-git' 'xcursor-sweet')

    _install ''
}