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