APP=libepoxy
VERSION=1.5.4
BUILD=1sml
HOMEPAGE="https://github.com/anholt/libepoxy"
DOWNLOAD="https://github.com/anholt/libepoxy/archive/refs/tags/1.5.4.tar.gz"
DESC="Library handling OpenGL function pointer management"
REQUIRES="mesa"

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

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

  mkdir -p smbuild && cd smbuild
  meson .. --prefix="/" 

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
7bde6fe7164aaa88b6e476dafb13391c551c530267936a1456e242d2bf648117f319788ba089100b3f773444098a894db6d27326b47dc4ae26db4766308d7510  libepoxy-1.5.4.tar.xz
"
