vinix-ports / ports / libxcb / PKGBUILD.vile
32 lines · 31 sloc · 1.36 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(libxcb,
2 #:pkgname, "libxcb",
3 #:pkgver, "1.16.1",
4 #:pkgrel, 1,
5 #:pkgdesc, "X client connection and protocol extension libraries",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://xcb.freedesktop.org/",
9 #:depends, ["musl", "libxau", "libxdmcp"],
10 #:makedepends, ["xcb-proto"],
11 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.16.1.tar.xz"],
12 #:sha256sums, ["f24d187154c8e027b358fc7cb6588e35e33e6a92f11c668fe77396a7ae66e311"],
13
14 #:prepare, fn() {
15 ; The 1.17 protocol description adds a DRI3 include to the generated Present header.
16 run("sed", "-i", "/^Requires.private:/s/$/ xcb-dri3/", "libxcb-1.16.1/xcb-present.pc.in")
17 },
18 #:build, fn() {
19 run("vinix-configure", "libxcb-1.16.1/configure", "--enable-xkb", "--enable-xinput", "--disable-xprint", "--disable-devel-docs")
20 ; The generator imports modules from the installed SDK.
21 run("env", "PYTHONDONTWRITEBYTECODE=1", "make")
22 },
23 #:check, fn() {
24 run("make", "check", "VERBOSE=1")
25 run("test", "-s", "src/.libs/libxcb-xinput.so")
26 run("test", "-s", "src/.libs/libxcb-xkb.so")
27 },
28 #:package, fn() {
29 run("make", "install", string-append("DESTDIR=", pkgdir()))
30 run("find", pkgdir(), "-name", "*.la", "-delete")
31 run("install", "-Dm644", "libxcb-1.16.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxcb/COPYING"))
32 })
33