APP=adwaita-icon-theme
VERSION=3.36.0
BUILD=1sml
HOMEPAGE="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
DOWNLOAD="https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/archive/3.36.0/adwaita-icon-theme-3.36.0.tar.bz2"
DESC="Collection of default icons used by GTK+"
REQUIRES="gtk2 gtk3 hicolor-icon-theme"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  patch -p1 < $SRCDIR/inherit-hicolor-theme.diff

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --localstatedir=/var 

  make
  make install DESTDIR=$PKG

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
e93743b74f0853e73df81b0e4fe58d09b35fceef99c808591a34ee4b963c3db689935dc0f6ddd76fd22bd2d3df595989f5d470821275add254858db0d18fbecb  adwaita-icon-theme-3.36.0.tar.lz
43190d282ff6f003b51ce1759d5933935b8dc9c31c048b150b5dd4c0bd748d3378e38f34a3c0e1b0772290c802a073ea18c87828c08141e984dd9261ca54f418  inherit-hicolor-theme.diff
"
