# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libepoxy
version=1.5.4
build=1sml
homepage="https://github.com/anholt/libepoxy"
download="https://github.com/anholt/libepoxy/archive/refs/tags/$version.tar.gz"
desc="Library handling OpenGL function pointer management"
requires="mesa"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix=/

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
782ee08c51ba5393301b44f0d65bb029c1c1e7d97e7bd44e5f03aba94671f2fd26240e9e6214925a0103842d539d59d1aca9e3f298ab7689051024c42b5899eb  libepoxy-1.5.4.tar.lz
"
