me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

libepoxy: build GLX and EGL dispatch for Vinix

diviocity committed 6 days ago · 224af653fa6c1f739a218d5f4bdaf106278132c3 View patch
Unverified signature 1 files changed +24 -0
libepoxy/PKGBUILD.vile new file +24 -0

@@ -0,0 +1,24 @@

1+defpkgbuild(libepoxy,

2+ #:pkgname, "libepoxy",

3+ #:pkgver, "1.5.10",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "OpenGL, GLX and EGL function dispatch library",

6+ #:arch, [#:x86-64, #:aarch64],

7+ #:license, "MIT",

8+ #:url, "https://github.com/anholt/libepoxy",

9+ #:depends, ["musl", "libx11", "mesa-platform-headers"],

10+ #:source, ["libepoxy-1.5.10.tar.gz::https://github.com/anholt/libepoxy/archive/refs/tags/1.5.10.tar.gz"],

11+ #:sha256sums, ["a7ced37f4102b745ac86d6a70a9da399cc139ff168ba6b8002b4d8d43c900c15"],

12+ #:build, fn() {

13+ run("vinix-meson", "libepoxy-1.5.10", "build", "-Dglx=yes", "-Degl=yes", "-Dx11=true", "-Dtests=false")

14+ run("meson", "compile", "-C", "build", "-j2")

15+ },

16+ #:check, fn() {

17+ run("readelf", "-d", "build/src/libepoxy.so")

18+ run("test", "-s", "build/include/epoxy/glx_generated.h")

19+ run("test", "-s", "build/include/epoxy/egl_generated.h")

20+ },

21+ #:package, fn() {

22+ run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())

23+ run("install", "-Dm644", "libepoxy-1.5.10/COPYING", string-append(pkgdir(), "/usr/share/licenses/libepoxy/COPYING"))

24+ })