summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f273d2e24e0778d5b1f78664d2b7b56094e16a50 (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Joaquin Garmendia <joaquingc123 at gmail dot com>
# Contributor: Orestis Floros <orestisf1993@gmail.com>

pkgname=gtk-arc-flatabulous-theme-git
_pkgname=arc-flatabulous-theme
pkgver=r905.6658eac
pkgrel=1
pkgdesc="Arc theme with Flatabulous window controls."
arch=('any')
url="https://github.com/andreisergiu98/${_pkgname}"
license=('GPL3')
depends=()
makedepends=('git' 'autoconf' 'automake' 'sassc' 'optipng' 'inkscape')
optdepends=('gtk-engine-murrine: for gtk2 themes'
            'gnome-themes-extra: for gtk2 themes'
            'gtk3: for gtk3 themes'
            'gnome-shell: for detecting GNOME Shell version'
)
provides=('gtk-arc-flatabulous-theme')
conflicts=('gtk-arc-flatabulous-theme')
source=("git+${url}")
sha256sums=('SKIP')

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

_autogen_options=()

check_optdepends() {
    # Check if gnome-shell is installed
    if (pacman -Qq gnome-shell > /dev/null) ; then
        msg "Enabling GNOME Shell support"
    else
        msg "Disabling GNOME Shell support"
        _autogen_options=(${_autogen_options[@]} --disable-gnome-shell)
    fi
}

build() {

    # Check optional dependencies
    check_optdepends

    cd "${srcdir}/${_pkgname}"
    ./autogen.sh ${_autogen_options[@]} --prefix=/usr
    make
}

package() {
    cd "${srcdir}/${_pkgname}"
    make DESTDIR="${pkgdir}" install
}