defpkgbuild(libepoxy, #:pkgname, "libepoxy", #:pkgver, "1.5.10", #:pkgrel, 1, #:pkgdesc, "OpenGL, GLX and EGL function dispatch library", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", #:url, "https://github.com/anholt/libepoxy", #:depends, ["musl", "libx11", "mesa-platform-headers"], #:source, ["libepoxy-1.5.10.tar.gz::https://github.com/anholt/libepoxy/archive/refs/tags/1.5.10.tar.gz"], #:sha256sums, ["a7ced37f4102b745ac86d6a70a9da399cc139ff168ba6b8002b4d8d43c900c15"], #:build, fn() { run("vinix-meson", "libepoxy-1.5.10", "build", "-Dglx=yes", "-Degl=yes", "-Dx11=true", "-Dtests=false") run("meson", "compile", "-C", "build", "-j2") }, #:check, fn() { run("readelf", "-d", "build/src/libepoxy.so") run("test", "-s", "build/include/epoxy/glx_generated.h") run("test", "-s", "build/include/epoxy/egl_generated.h") }, #:package, fn() { run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir()) run("install", "-Dm644", "libepoxy-1.5.10/COPYING", string-append(pkgdir(), "/usr/share/licenses/libepoxy/COPYING")) })