# Contributor: Martin Wimpress <code@flexion.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: dikasp <dikasetyaprayogi@gmail.com>
# Contributor: bill-auger <bill-auger@programmer.net>


# parabola cghanges and rationale:
# - remove non-free distro and application logos


pkgname=mate-icon-theme-faenza
pkgver=1.20.0
pkgrel=2
pkgrel+=.parabola1
pkgdesc="Faenza icon theme for MATE"
url="https://mate-desktop.org"
arch=('any')
license=('GPL')
makedepends=('mate-common')
groups=('mate-extra')
source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('ca7202b7c880399d3d1ccd409b79fd0de728350dcf3fe1b4a758d06559ca1b00')

# parabola mksource over-rides
mksource=(     ${source[*]}     )
mksha256sums=( ${sha256sums[*]} )
source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-${pkgver}.tar.gz{,sig})
sha256sums=('TODO'
            'SKIP')


mksource() {
    cd ${pkgname}-${pkgver}

    # remove non-free distro and application logos
    for nonfree in adobe-air AdobeAIR \
                             AdobeReader \
                             AdobeReader8 \
                             AdobeReader9 \
                             AdobeReader10 \
                             acroread \
                             alien-arena \
                             amazon-mp3-store-source \
                             amazon-store \
                             as-icon \
                             as-powered \
                             autoplus \
                             archlinux \
                             checkgmail \
                             chromium \
                             chromium-browser \
                             chromium-browser2 \
                             debian \
                             defcon \
                             easylife \
                             evernote \
                             facebook \
                             fedora \
                             firefox \
                             firefox-3.0 \
                             firefox-3.5 \
                             firefox-4.0 \
                             firefox-original \
                             flash \
                             frugalware \
                             gentoo \
                             gmail \
                             gmailwatcher \
                             goa-account-facebook \
                             goa-account-google \
                             goa-account-twitter \
                             goa-account-yahoo \
                             google \
                             google-chrome \
                             google-chrome2 \
                             google-chrome-unstable \
                             google-earth \
                             googleearth \
                             googlemusicframe \
                             google-plus \
                             gtwitter \
                             last-fm \
                             lastfm-audioscrobbler \
                             linux-mint \
                             mandriva \
                             mendeley \
                             mendeleydesktop \
                             nixnote \
                             novell \
                             opensuse \
                             opera \
                             opera-browser \
                             opera-widget \
                             opera-widget-manager \
                             picasa \
                             picasa32x32 \
                             picasa-fontcfg \
                             playonlinux \
                             redhat \
                             rpmdrake \
                             skype \
                             slackware \
                             spotify \
                             suse \
                             susehelpcenter \
                             teamviewer \
                             twitter \
                             Twitter-twitter.com \
                             ubuntu \
                             yahoo \
                             youtube
    do
        find -name *$nonfree* -delete
    done
}

build() {
    cd ${pkgname}-${pkgver}
    ./autogen.sh
    ./configure \
        --prefix=/usr
    make
}

package() {
    cd ${pkgname}-${pkgver}
    make DESTDIR="${pkgdir}" install
}
