summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46bdea1f0bedb3f79766a0722f055bbe6535de28 (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Maintainer: Joaquin Garmendia <joaquingc123 at gmail dot com>
# Contributor: Orestis Floros <orestisf1993@gmail.com>
pkgname=gtk-arc-flatabulous-theme
_pkgname=arc-flatabulous-theme
pkgver=20180201
pkgrel=3
pkgdesc="Arc theme with Flatabulous window controls."
arch=('any')
url="https://github.com/andreisergiu98/${_pkgname}"
license=('GPL3')
makedepends=('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'
           )
source=("https://github.com/andreisergiu98/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('37c4a748273ed32cc5ec16fa083dfc4f708374b1a9811b03baf311265f6b5f4d')
conflicts=('gtk-arc-flatabulous-theme')

_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}-${pkgver}"
    ./autogen.sh ${_autogen_options[@]} --prefix=/usr
    make
}

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