vinix-ports / libxshmfence / PKGBUILD.vile
31 lines · 30 sloc · 1.14 KB · bcf11589caebb12f81ae9333e428c4981c045c65
Raw
1defpkgbuild(libxshmfence,
2 #:pkgname, "libxshmfence",
3 #:pkgver, "1.3.2",
4 #:pkgrel, 1,
5 #:pkgdesc, "X11 shared memory fences",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["musl", "xorgproto"],
10 #:makedepends, ["linux-headers"],
11 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libxshmfence-1.3.2.tar.xz"],
12 #:sha256sums, ["870df257bc40b126d91b5a8f1da6ca8a524555268c50b59c0acd1a27f361606f"],
13
14 #:prepare, fn() {
15 ; Installed pkg-config files must use the consumer's sysroot.
16 run("sed", "-i", "s/ @XPROTO_CFLAGS@//", "libxshmfence-1.3.2/xshmfence.pc.in")
17 },
18 #:build, fn() {
19 run("vinix-configure", "libxshmfence-1.3.2/configure", "--enable-futex")
20 run("make")
21 },
22 #:check, fn() {
23 run("test", "-s", "src/.libs/libxshmfence.so")
24 run("readelf", "-d", "src/.libs/libxshmfence.so")
25 },
26 #:package, fn() {
27 run("make", "install", string-append("DESTDIR=", pkgdir()))
28 run("find", pkgdir(), "-name", "*.la", "-delete")
29 run("install", "-Dm644", "libxshmfence-1.3.2/COPYING",
30 string-append(pkgdir(), "/usr/share/licenses/libxshmfence/COPYING"))
31 })
32