# Maintainer: ArchFeh <guyu2876@gmail.com>
# Contributor: Robosky <fangyuhao0612@gmail.com>
pkgname=mojave-gtk-theme-git
_pkgname=Mojave-gtk-theme
pkgver=r407.6b7b4fa
pkgrel=1
pkgdesc='A Mac OSX like theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments like Gnome, Pantheon, XFCE, Mate, etc.'
arch=('any')
depends=('gtk3' 'gtk-engine-murrine' 'gtk-engines')
license=('GPL3')
url='https://github.com/vinceliuice/Mojave-gtk-theme'
source=('git+https://github.com/vinceliuice/Mojave-gtk-theme.git')
md5sums=('SKIP')
makedepends=('sassc' 'optipng' 'inkscape' 'git')
options=('!strip')
conflicts=('mojave-gtk-theme' 'mojave-gtk-theme-git-new')

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

package() {
  cd "${srcdir}/${_pkgname}"
  install -m755 -d "${pkgdir}/usr/share/themes"
  ./install.sh \
    --dest "${pkgdir}/usr/share/themes" \
    --icon arch
}
