pkgname=gnome-themes-standard
pkgbase=gnome-themes-extra
pkgver=3.28
pkgdesc="Standard Themes for GNOME Applications"
homepage="https://gitlab.gnome.org/GNOME/gnome-themes-extra"
license=("LGPL-2.1+")
_patches=("${pkgname}-3.22.2-exclude-engine.patch")
_patch_sums=("9b7f4efdce158485850e12566dce91a7b3494bae8191bcacb581a737dde15bcce9b10af8f28ab920605e86008744ad380312f26fc3d624bada910599501159f9")
sources=("${pkgbase}-${pkgver}.tar.xz"
  "${_patches[@]}"
)
urls=("https://download.gnome.org/sources/${pkgbase}/${pkgver}/${sources[0]}"
  "${_patches[@]}"
)
sha512sums=("bccc446e86b12476b86a0fe2e3354500c8fb3eef62a85c3823d69aaa259e032e1f94e7993bf633397b669c425ef42635b0cf17b376f0b7cf1869bb1d7160ede0"
  "${_patch_sums[@]}"
)

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
  for _patch in ${_patches[@]}; do
    patch -p1 -i ${filedir}/${_patch}
  done

  autoreconf -fiv
}

src_build() {
  ./configure --prefix=/usr \
    --disable-gtk2-engine \
    --disable-gtk3-engine
  make
}

src_install() {
  make DESTDIR="$pkgdir" install
}

# vim:ft=sh syn=sh et sw=2:
