defpkgbuild(libxrender, #:pkgname, "libxrender", #:pkgver, "0.9.11", #:pkgrel, 1, #:pkgdesc, "X Rendering Extension client library", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", #:url, "https://www.x.org/", #:depends, ["libx11"], #:makedepends, ["xorgproto"], #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXrender-0.9.11.tar.xz"], #:sha256sums, ["bc53759a3a83d1ff702fb59641b3d2f7c56e05051fa0cfa93501166fa782dc24"], #:build, fn() { run("vinix-configure", "libXrender-0.9.11/configure", "--disable-malloc0returnsnull") run("make") }, #:check, fn() { run("test", "-s", "src/.libs/libXrender.so") run("readelf", "-d", "src/.libs/libXrender.so") }, #:package, fn() { run("make", "install", string-append("DESTDIR=", pkgdir())) run("find", pkgdir(), "-name", "*.la", "-delete") run("install", "-Dm644", "libXrender-0.9.11/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxrender/COPYING")) })