# Maintainer: PktSurf <smlinux@pktsurf.in>
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/$version/adwaita-icon-theme-$version.tar.bz2"
desc="Collection of default icons used by GTK+"
requires="gtk2 gtk3 hicolor-icon-theme"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  applypatch $srcdir/inherit-hicolor-theme.diff
}

build() {
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

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