defpkgbuild(expat, #:pkgname, "expat", #:pkgver, "2.11.0", #:pkgrel, 2, #:pkgdesc, "Expat XML parser, headers and xmlwf", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", #:url, "https://libexpat.github.io/", #:depends, ["musl"], #:source, ["https://github.com/libexpat/libexpat/releases/download/R_2_11_0/expat-2.11.0.tar.xz"], #:sha256sums, ["61e7614b602201c28a189dafee78f5bceaee192bbde46a930752ff09cf5542fa"], #:build, fn() { run("vinix-configure", "expat-2.11.0/configure", "--without-docbook", "--without-examples", "--without-tests") run("make") }, #:check, fn() { run("vinix-run", "--library-path", "lib/.libs", "xmlwf/.libs/xmlwf", "expat-2.11.0/doc/xmlwf.xml") }, #:package, fn() { run("make", "install", string-append("DESTDIR=", pkgdir())) run("rm", string-append(pkgdir(), "/usr/lib/libexpat.la")) run("install", "-Dm644", "expat-2.11.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/expat/COPYING")) })