defpkgbuild(libgpg-error, #:pkgname, "libgpg-error", #:pkgver, "1.51", #:pkgrel, 2, #:pkgdesc, "Common error codes and runtime support for GnuPG", #:arch, [#:x86-64, #:aarch64], #:url, "https://www.gnupg.org/software/libgpg-error/", #:license, "GPL-2.0-or-later AND LGPL-2.1-or-later", #:depends, ["musl"], #:source, ["https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.51.tar.bz2"], #:sha256sums, ["be0f1b2db6b93eed55369cdf79f19f72750c8c7c39fc20b577e724545427e6b2"], #:build, fn() { run("vinix-configure", "libgpg-error-1.51/configure", "--enable-install-gpg-error-config", "--disable-nls") run("make") }, #:check, fn() { run("vinix-run", "--library-path", "src/.libs", "tests/t-version") run("vinix-run", "--library-path", "src/.libs", "tests/t-strerror") run("vinix-run", "--library-path", "src/.libs", "tests/t-b64") run("vinix-run", "--library-path", "src/.libs", "tests/t-lock") }, #:package, fn() { run("make", "install", string-append("DESTDIR=", pkgdir())) run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir")) run("find", pkgdir(), "-name", "*.la", "-delete") run("install", "-Dm644", "libgpg-error-1.51/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/libgpg-error/COPYING.LIB")) })